Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Dec 2, 2024
1 parent 2f03d64 commit b11af06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions translator/src/injection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub async fn dump_storage(telos_rpc: &str, block_delta: u32) -> TelosEVMStateJSO
.await
.expect("Couldnt get config row!");
assert_eq!(config_row.rows.len(), 1);
let gas_price = U256::from_str(&config_row.rows.get(0).unwrap().gas_price).unwrap();
let gas_price = U256::from_str(&config_row.rows.first().unwrap().gas_price).unwrap();

let mut has_more = true;
let mut lower_bound = Some(TableIndexType::UINT64(0));
Expand Down Expand Up @@ -132,7 +132,7 @@ async fn dump_account(
println!("Account: {:?}", address);
println!("Telos balance: {:?}", telos_balance);
println!("Telos nonce: {}", account_row.nonce);
println!("Telos present code: {}", account_row.code.len() > 0);
println!("Telos present code: {}", !account_row.code.is_empty());

let storage = dump_account_storage(account_row, api_client).await;

Expand Down Expand Up @@ -202,7 +202,7 @@ async fn dump_account_storage(
}
}

return storage;
storage
}

pub fn generate_extra_fields_from_json(state_json: &str) -> (u32, TelosEngineAPIExtraFields) {
Expand Down

0 comments on commit b11af06

Please sign in to comment.