diff options
author | Antoine A <> | 2022-03-02 21:22:36 +0100 |
---|---|---|
committer | Antoine A <> | 2022-03-02 21:22:36 +0100 |
commit | dda381097b71d82d1c055c2f00bc924aa4003ce6 (patch) | |
tree | 13d08921f2fe8453ed56385d45a53d5fb7390cb1 /eth-wire | |
parent | 2295a6e5fc493341bfc2aff49df4392020a17c43 (diff) | |
download | depolymerization-dda381097b71d82d1c055c2f00bc924aa4003ce6.tar.gz depolymerization-dda381097b71d82d1c055c2f00bc924aa4003ce6.tar.bz2 depolymerization-dda381097b71d82d1c055c2f00bc924aa4003ce6.zip |
Fix gateway and clippy fix
Diffstat (limited to 'eth-wire')
-rw-r--r-- | eth-wire/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth-wire/src/lib.rs b/eth-wire/src/lib.rs index 3ee6870..a54f0ca 100644 --- a/eth-wire/src/lib.rs +++ b/eth-wire/src/lib.rs @@ -197,7 +197,7 @@ impl SyncState { } const DEFAULT_CONFIRMATION: u16 = 24; -const DEFAULT_BOUNCE_FEE: &'static str = "ETH:0.00001"; +const DEFAULT_BOUNCE_FEE: &str = "ETH:0.00001"; pub struct WireState { pub confirmation: AtomicU32, pub max_confirmations: u32, @@ -221,7 +221,7 @@ impl WireState { fn config_bounce_fee(config: &EthConfig) -> U256 { let config = config.bounce_fee.as_deref().unwrap_or(DEFAULT_BOUNCE_FEE); - Amount::from_str(&config) + Amount::from_str(config) .ok() .and_then(|a| taler_to_eth(&a).ok()) .expect("config value BOUNCE_FEE is no a valid ethereum amount") |