From 6be5d64c1c7f5e743ed8062530b1922c24520f54 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 27 Oct 2020 10:05:52 +1100 Subject: [PATCH] Remove stale, ugly, type conversion --- swap/src/alice.rs | 4 ---- swap/src/bob.rs | 4 ---- 2 files changed, 8 deletions(-) diff --git a/swap/src/alice.rs b/swap/src/alice.rs index 775020dd..210a2451 100644 --- a/swap/src/alice.rs +++ b/swap/src/alice.rs @@ -70,10 +70,6 @@ pub async fn swap( None => unreachable!("should have amounts by here"), }; - let xmr = monero::Amount::from_piconero(xmr.as_piconero()); - // TODO: This should be the Amount exported by xmr_btc. - let btc = ::bitcoin::Amount::from_sat(btc.as_sat()); - // TODO: Pass this in using let rng = &mut OsRng; let state0 = State0::new( diff --git a/swap/src/bob.rs b/swap/src/bob.rs index 91e88cc1..1d7d08ad 100644 --- a/swap/src/bob.rs +++ b/swap/src/bob.rs @@ -69,10 +69,6 @@ where other => panic!("unexpected event: {:?}", other), }; - // FIXME: Too many `bitcoin` crates/modules. - let xmr = xmr_btc::monero::Amount::from_piconero(xmr.as_piconero()); - let btc = ::bitcoin::Amount::from_sat(btc.as_sat()); - // TODO: Pass this in using let rng = &mut OsRng; let state0 = State0::new(