We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48d589 commit 6e4b0bfCopy full SHA for 6e4b0bf
crates/evm/src/executor/inspector/utils.rs
@@ -23,9 +23,7 @@ pub fn get_create_address(call: &CreateInputs, nonce: u64) -> Address {
23
match call.scheme {
24
CreateScheme::Create => call.caller.create(nonce),
25
CreateScheme::Create2 { salt } => {
26
- let init_code = alloy_primitives::Bytes(call.init_code.0.clone());
27
- let init_code_hash = alloy_primitives::keccak256(init_code);
28
- call.caller.create2(B256::from(salt), init_code_hash)
+ call.caller.create2_from_code(B256::from(salt), call.init_code.clone())
29
}
30
31
0 commit comments