Skip to content

Commit e2ff3d9

Browse files
committed
fix: initcode hash derivation
1 parent d5287aa commit e2ff3d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/AlchemyProxyLoader.t.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ contract AlchemyProxyLoaderTest is Test {
6767
function test_getDeployedProxyInitcode() public pure {
6868
bytes32 bytecodeHash = keccak256(
6969
abi.encodePacked(
70-
type(ERC1967Proxy).creationCode,
71-
abi.encodePacked(address(0xea8ea085589afBA8C5DA2808F150AC14fA10BA78), "")
70+
type(ERC1967Proxy).creationCode, abi.encode(address(0xea8ea085589afBA8C5DA2808F150AC14fA10BA78), "")
7271
)
7372
);
74-
assertEq(bytecodeHash, 0xb3fd145a437320ebc1cf7ad1887a3a263ce4003431505352568badf1e3be92cc);
73+
assertEq(bytecodeHash, 0xe0452ab1053554246673c6014bfd6946ce1d0a75169735269bc9fab6083f7535);
7574
}
7675
}

0 commit comments

Comments
 (0)