-
Notifications
You must be signed in to change notification settings - Fork 298
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
Getting nonce has already been used
with deterministicDeployment
#544
Comments
That's a weird one, It means the blockchain you are trying to deploy do not support the factory used by hardhat-deploy You can configure a different factory : https://github.com/wighawag/hardhat-deploy?tab=readme-ov-file#4-deterministicdeployment-ability-to-specify-a-deployment-factory |
@wighawag after investigating more, I came across this issue which is really similar: safe-global/safe-singleton-factory#408 So it turns out that the 1st attempt at deployer contract creation failed because the deployer address Now that nonce 0 has been used, I guess we're a bit stuck here... |
yes, you would need a different factory |
i had same issue. forgot to allow my contract. now nonce 0 is gone. maybe a simple feature can be added to plugin to check if a chain has IAllowList precompile (means its avax l1) and check it has right to deploy first? |
is there a way to disable deterministic deployment, or is there an easy way to create new factory parameters for deterministicDeployment |
@executionreverted see this comment : #544 (comment) you can setup your own deterministic deployment parameters |
Hello,
I am trying to deploy
safe-contracts
which usesdeterministicDeployment
in its scripts on an Avalanche Subnet EVM.The deployment fails at stage
deploying create2 deployer contract
with the following stack trace:It is worth mentioning that a previous attempt at deploying the contracts failed on the network on which I want to deploy the Safe contracts (see transaction) so indeed, the deployer address'
0x3fab184622dc19b6109349b94811493bf2a45362
nonce 0 has already been used.Is there a way to setup the nonce using
deterministicDeployment
?Thanks
The text was updated successfully, but these errors were encountered: