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

parameratized contracts, arguments, and networking #44

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

PatrickAlphaC
Copy link
Contributor

Hi! I've made a few changes, outlined in the changelog and readme:

4.3.2

  • Contracts now must be in the src folder, as the find command in common.sh now looks only in the src folder. This is to improve on naming conflicts with imported packages.
  • Added a helper-config.sh for parameratizing arguments for different contracts based on the network you're on.
  • Changed deploy.sh to be parameratized for contracts and arguments. Adding a CONTRACT=<contractname> in the command line will switch the contract. Additionally, if you want arguments of that contract to be added correctly, you have to add them to helper-config.sh.
  • Added network exporting in the makefile so the helper config can tell what network you're on.

I found these tweaks a lot easier to make bigger projects with dependencies. Let me know if you like! I'm a bit of a Makefile noob, so if I did some stuff that wasn't best practice, let me know!

@gakonst gakonst merged commit 13ea7e9 into foundry-rs:master Jan 17, 2022
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