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

Add shell script for prod deployments + modify Makefile accordingly #972

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

Conversation

portdeveloper
Copy link
Contributor

@portdeveloper portdeveloper commented Oct 24, 2024

Hello!

This PR:

-> adds a shell script to give the user a menu for selecting a keystore when deploying to any network other than the local anvil node
-> modifies the makefile to pass in the RPC_URL from the foundry.toml file to the shell script
-> works in linux and macos, since foundry does not work on windows natively, windows is ignored. So we should test this on: linux + wsl + macos
-> removes the need to modify the .env file when changing keystores to use

Possible To-Do:

-> ‘—keystore’ flag (thx to Shiv for the suggestion) I have some working code on this, but it accepts variables like this:
yarn deploy --network sepolia my-keystore
instead of
yarn deploy --network sepolia --keystore my-keystore
We can also introduce a new script as I couldn't find how to achieve this without doing so. Tried passing in another flag in the package.json, but did not work.

@portdeveloper portdeveloper marked this pull request as ready for review October 31, 2024 05:23
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.

1 participant