Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoscout committed Nov 27, 2024
1 parent 6665219 commit e5a5048
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions src/evm-block-extractor/src/task/block_extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
self.blockchain
.insert_genesis_balances(&genesis_balances)
Expand Down
5 changes: 1 addition & 4 deletions src/evm-block-extractor/tests/tests/block_extractor_it.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();

assert_eq!(evmc_genesis_balances, db_genesis_balances);
Expand Down
5 changes: 1 addition & 4 deletions src/register-evm-agent/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5a5048

Please sign in to comment.