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

Feat: Add predict safe deployment addres flag #82

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

karacurt
Copy link
Contributor

@karacurt karacurt commented Oct 4, 2024

This PR adds --safe-predict-address flag to predict the deployment address with a given salt and contract bytecode.

Example:

./ERC20 deploy --keyfile ~/.secret/wallet_keystore.json --rpc https://sepolia.infura.io/v3/YOUR_KEY --symbol KARACURT --decimals 18 --total-supply 1000000000000000 --safe 0xCca527fE0D9bB38b4b24e4F581BD76Fca5baE227 --safe-salt ed87f83fa9f2dc81f36cf8ef271e3c5a443d68c44a239f52aaa3421ef87fc8eb --safe-operation 1 --safe-predict-address
--safe-api not specified, using default ( https://safe-client.safe.global/v1/chains/11155111/transactions/0xCca527fE0D9bB38b4b24e4F581BD76Fca5baE227/propose )
--safe-create-call not specified, using default (0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4)
Predicting deployment address...
Predicted deployment address: 0x6698A993faFc2d6450F2F852f3F9d0DaAC08B0df

Copy link
Contributor

@zomglings zomglings left a comment

Choose a reason for hiding this comment

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

lgtm

@karacurt karacurt merged commit b0b48c6 into main Oct 4, 2024
1 check passed
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