Dupe the multiple Add impls
Co-authored-by: Jane Lusby <jlusby42@gmail.com>
This commit is contained in:
parent
62ad554d84
commit
de6994ad52
|
@ -141,8 +141,7 @@ impl<'a> std::ops::Add<&'a ValueCommitment> for ValueCommitment {
|
|||
type Output = Self;
|
||||
|
||||
fn add(self, rhs: &'a ValueCommitment) -> Self::Output {
|
||||
let value = self.0.to_extended() + rhs.0.to_extended();
|
||||
ValueCommitment(value.into())
|
||||
self + *rhs
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue