Open leopaul36 opened 7 months ago
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: https://github.com/safe-global/safe-singleton-factory/issues/408
So it turns out that the 1st attempt at deployer contract creation failed because the deployer address 0x3fab184622dc19b6109349b94811493bf2a45362
was not allowed to create smart contract on this chain.
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 : https://github.com/wighawag/hardhat-deploy/issues/544#issuecomment-2082227768
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