-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Multi chain deployment script issues (Ledger, --verify) #3698
Comments
Can you confirm if this is still an issue? I believe there's been some ledger fixes since this was created |
Hey! I can confirm I just ran into this same issue. Using Ledger to sign, the multichain deploy script successfully submits the transactions on the first chain, but throws the same error as above once the script reaches the point of switching to the second chain:
I can also confirm that I tested using Ledger to run a single-chain deploy script that submitted multiple transactions, and it worked perfectly fine. However, once trying a multi-chain script, the Ledger integration fails at the point of switching chains. I also tried using a .env EOA for multichain deploy script, and that worked fine. So, it seems like the issue is pinpointed to Ledger + multichain script Full Logs
Reproduce errorHere's an example forge script to repro:
with
and
|
Marking as Unable to replicate the issue with the given instructions with minor modifications (holesky instead of goerli)
We've also since moved from Ethers to Alloy |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (903a073 2022-11-15T00:06:12.539932Z)
What command(s) is the bug in?
forge script scripts/FullMultiChain.s.sol:FullMultiChainDeployment --broadcast --private-key ${PRIVATE_KEY} --verify --multi -vvvv
Operating System
macOS (Apple Silicon)
Describe the bug
While trying out the new multi chain deployments from a same script I found a few issues.
While using private key for deployment it works correctly, but when using ledger it breaks.
command:
forge script scripts/FullMultiChain.s.sol:FullMultiChainDeployment --broadcast --legacy --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv
error:
So I can sign the transactions on fuji, but when its time to sign on a different network (goerli) it breaks.
Also verification does not work with private key or ledger. I am adding the expected
--verify
flag, and have set up onfoundry.toml
the etherscan vars so i guess there should not be any need to add them to the command:Don't know if i am missing some flag or maybe the toml config nees something else?
Thx for the help
The text was updated successfully, but these errors were encountered: