Closed Ghoulouis closed 1 month ago
Several new network choose to not support tx without chainId and as a result do not support the create2 factory used by many other chain.
hardhat-deploy can be configured to use a different factory, see : https://github.com/wighawag/hardhat-deploy?tab=readme-ov-file#4-deterministicdeployment-ability-to-specify-a-deployment-factory
Describe the bug The chainID field in transaction deploy create2 deployer using deterministicDeployment is none.
To Reproduce Steps to reproduce the behavior:
execute I create a simple contract and try deploy it using deterministicDeployment
The network I am interacting with is the Oasis sapphire testnet, transactions sent to this network need to have a chainID field. This is a private EVM network but I think they are unrelated to the deployment
See error
Expected behavior
I think this problem comes from reusing deployment Transaction (https://github.com/Arachnid/deterministic-deployment-proxy). The above project has been around for 5 years. and the chainId field is not in that signedTransaction. I hope to find a new example of deterministicDeployment via hardhat-deploy.
versions
Additional context