Skip to content

Calculate bytecodehash in solidity on a ZK Stack based chain #718

Closed Answered by vmaark
vmaark asked this question in ZK Stack
Discussion options

You must be logged in to vote

I figured what's causing the issue: the project is using hardhat for deployment, but foundry for unit tests, where we check that the create2 address is correct. Unfortunately foundry and hardhat generated bytecode will very likely differ in every case, according to foundry-rs/foundry#5559, which will make both the hash and the address different too.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dutterbutter
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JackHamer09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
zk-stack ZK Stack Question
3 participants