Skip to content

Commit

Permalink
pr_suggestions: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fborello-lambda authored Jan 7, 2025
1 parent ae13a79 commit 295ad44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/l2/sdk/src/eth_client/eth_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl EthClient {
let mut encode = vec![];
(deployer, nonce).encode(&mut encode);

//Taking the last 20bytes so it matches an H160 == Address length
let deployed_address =
Address::from_slice(keccak(encode).as_fixed_bytes().get(12..).ok_or(
EthClientError::Custom("Failed to get deployed_address".to_owned()),
Expand Down

0 comments on commit 295ad44

Please sign in to comment.