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

Redeploy contracts #31

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Redeploy contracts #31

merged 1 commit into from
Dec 10, 2024

Conversation

mdehoog
Copy link
Collaborator

@mdehoog mdehoog commented Dec 10, 2024

No description provided.

jq -r '.bytecode.object' out/$(1).sol/$(1).json > out/$(1).sol/$(1).bin
jq -r '.abi' out/$(1).sol/$(1).json > out/$(1).sol/$(1).abi
abigen --abi out/$(1).sol/$(1).abi --bin out/$(1).sol/$(1).bin --pkg bindings --type $(1) --out bindings/$(2).go
endef
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

passing in the --bin argument also adds deployment helpers to the generated bindings, which is helpful for testing

@mdehoog mdehoog merged commit b1b3fd6 into main Dec 10, 2024
3 checks passed
@mdehoog mdehoog deleted the michael/redeploy-contracts branch December 10, 2024 21:52
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