-
I know that Foundry uses this But does Foundry also use this factory locally when running |
Beta Was this translation helpful? Give feedback.
Answered by
PaulRBerg
May 30, 2023
Replies: 1 comment
-
Looks like it does use that factory even when testing. I wrote this test to check: function test_Example() external {
bytes memory zeroBytecode = address(0xfF00000000000000000000000000000000000000).code;
bytes memory factoryBytecode = CREATE2_FACTORY.code;
assertEq(zeroBytecode, factoryBytecode, "bytecodes mismatch");
}
Just like the value it has on Mainnet. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PaulRBerg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like it does use that factory even when testing. I wrote this test to check:
factoryBytecode
has this value:Just like the value it has on Mainnet.