Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change bytecode hash for deploy script #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexkeating
Copy link
Contributor

Description

  • We were reading the bytehash from the wrong directory and choose to hardcode it instead.

const zkCappedMinterJson = JSON.parse(fs.readFileSync(zkCappedMinterPath, 'utf8'));
const BYTECODE_HASH = '0x' + zkCappedMinterJson.hash;
// Get the bytecode hash from ZkCappedMinter.json in ./artifacts-zk
// Verify this bytecode hash before deploying as it can change if the the compilation of the capped minter changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather save the full bytecode in a file and recalculate the bytecodehash here. This is more feature proof

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay we can give that a shot!

alexkeating pushed a commit that referenced this pull request Dec 17, 2024
* Allow minting to be bounded by time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants