Merge pull request #402 from str4d/amount-to-orchard-valuesum
impl From<Amount> for orchard::ValueSum
This commit is contained in:
commit
d88e40113c
|
@ -182,6 +182,12 @@ impl Neg for Amount {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Amount> for orchard::ValueSum {
|
||||
fn from(v: Amount) -> Self {
|
||||
orchard::ValueSum::from_raw(v.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<orchard::ValueSum> for Amount {
|
||||
type Error = ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue