Skip to content

Commit

Permalink
Use getRawCodeHash instead of getCodeHash
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Jan 3, 2025
1 parent 4310bca commit 86b3ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system-contracts/contracts/ContractDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ contract ContractDeployer is IContractDeployer, SystemContractBase {
// solhint-disable-next-line reason-string, gas-custom-errors
require(NONCE_HOLDER_SYSTEM_CONTRACT.getRawNonce(_newAddress) == 0x0);
// solhint-disable-next-line reason-string, gas-custom-errors
require(ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT.getCodeHash(uint256(uint160(_newAddress))) == 0x0);
require(ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT.getRawCodeHash(_newAddress) == 0x0);
return _performDeployOnAddressEVM(_sender, _newAddress, AccountAbstractionVersion.None, _initCode);
}

Expand Down

0 comments on commit 86b3ab5

Please sign in to comment.