aboutsummaryrefslogtreecommitdiff
path: root/src/address
diff options
context:
space:
mode:
Diffstat (limited to 'src/address')
-rw-r--r--src/address/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/address/mod.rs b/src/address/mod.rs
index e44ca13..31f2079 100644
--- a/src/address/mod.rs
+++ b/src/address/mod.rs
@@ -68,6 +68,9 @@ impl<T: Address> AddressDiff<T> {
pub fn from_const(amount: T::Diff) -> Self {
AddressDiff { amount }
}
+ pub fn to_const(&self) -> T::Diff {
+ self.amount
+ }
}
impl<T: Address> fmt::Debug for AddressDiff<T> where T::Diff: fmt::Debug {