Skip to content

Commit

Permalink
Fix EVM branch in getCodeHash (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov authored Sep 23, 2024
1 parent 62e0e04 commit 6f791dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions system-contracts/contracts/AccountCodeStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ contract AccountCodeStorage is IAccountCodeStorage {
// so set `keccak256("")` as a code hash. The EVM has the same behavior.
else if (Utils.isContractConstructing(codeHash)) {
codeHash = EMPTY_STRING_KECCAK;
}

if (Utils.isCodeHashEVM(codeHash)) {
}
else if (Utils.isCodeHashEVM(codeHash)) {
codeHash = DEPLOYER_SYSTEM_CONTRACT.evmCodeHash(account);
}

Expand Down

0 comments on commit 6f791dd

Please sign in to comment.