Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Not works in other testnet because of COST_ESTIMATOR_ADDRESS #697

Open
amit-supraoracles opened this issue Oct 27, 2022 · 1 comment
Open

Comments

@amit-supraoracles
Copy link

Hi Team !!
This contract is deployed in Goerli testnet : 0x079d8077C465BD0BF0FC502aD2B846757e415661 hence only woks in that testnet.

To make it work in other network I had to hardcode the precompileGasCost.

Please share the solidity contract that was deployed and used here in BLS.sol

I thought this is BNPairingPrecompileCostEstimator.sol
But its a different one. (because the deployment cost and bytecode is different).

@jacque006
Copy link
Collaborator

Hey @amit-supraoracles , apologies for missing this. We may have done a test deploy on Goerli in the past, but you would need to deploy ALL the contracts yourself if you want to use them on a testnet. Because BNPairingPrecompileCostEstimator.sol is deployed via CREATE2, the address can change based on what account is deploying the contracts. If you are not using the same create2 deployer, you would need to update the precompile cost estimator address in BLS.sol to one you deployed.

For this project, I don't think we separated out the precompile deploy but you should be able to write a script to just deploy that, then use the address in BLS.sol.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants