diff --git a/src/evm-block-extractor/src/task/block_extractor.rs b/src/evm-block-extractor/src/task/block_extractor.rs index b4e806f2..694b4c7c 100644 --- a/src/evm-block-extractor/src/task/block_extractor.rs +++ b/src/evm-block-extractor/src/task/block_extractor.rs @@ -154,10 +154,7 @@ impl BlockExtractor { Ok(genesis_balances) => { let genesis_balances = genesis_balances .into_iter() - .map(|(address, balance)| AccountBalance { - address, - balance, - }) + .map(|(address, balance)| AccountBalance { address, balance }) .collect::>(); self.blockchain .insert_genesis_balances(&genesis_balances) diff --git a/src/evm-block-extractor/tests/tests/block_extractor_it.rs b/src/evm-block-extractor/tests/tests/block_extractor_it.rs index 102fbfd6..e07b0c47 100644 --- a/src/evm-block-extractor/tests/tests/block_extractor_it.rs +++ b/src/evm-block-extractor/tests/tests/block_extractor_it.rs @@ -44,10 +44,7 @@ async fn test_extractor_collect_blocks() { let evmc_genesis_balances = evmc_genesis_balances .into_iter() - .map(|(address, balance)| AccountBalance { - address, - balance, - }) + .map(|(address, balance)| AccountBalance { address, balance }) .collect::>(); assert_eq!(evmc_genesis_balances, db_genesis_balances); diff --git a/src/register-evm-agent/src/transaction.rs b/src/register-evm-agent/src/transaction.rs index f58c073a..bc73fa9f 100644 --- a/src/register-evm-agent/src/transaction.rs +++ b/src/register-evm-agent/src/transaction.rs @@ -89,10 +89,7 @@ impl SignTransactionArgs { .map(|address| H160::from_hex_str(&address).expect("address invalid")), nonce, value: self.value.map(U256::from).unwrap_or_default(), - gas: self - .gas - .map(U256::from) - .unwrap_or(DEFAULT_GAS_LIMIT.into()), + gas: self.gas.map(U256::from).unwrap_or(DEFAULT_GAS_LIMIT.into()), gas_price: self.gas_price.map(did::U256::from).unwrap_or_default(), input: self .data