在elther.js上执行交易时,无法预测的_gas_limit
在Rinkeby上部署Olympusdao智能合约时会得到这个问题
Error
cannot estimate gas;
transaction may fail or may require manual gas limit
[ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ]
(
reason="execution reverted",
method="estimateGas",
transaction={
"from":"0xBDA87452eDD9c15D0EEA25120410f329fEAA2D78",
"to":"0x1DeB9157508316A24BC0527444B142f563705BD0",
"data":"0xec78f90b0000000000000000000000000000000000000000000000000000000000000001",
"accessList":null
},
error={
"code":-32000,
"message":"execution reverted"
},
code=UNPREDICTABLE_GAS_LIMIT,
version=providers/5.6.6
)
步骤
- 我在尝试使用硬脚 ://github.com/olympusdao/olympus-contracts.git
- YARN安装
- 不符号“ // rinkeby:getChainConfig(“ rinkeby”)从hardhat配置文件
- yarn compile yarn compile
- yarn部署:rinkeby:rinkeby
出现了错误。最后一个脚本100_post_deployment.ts尝试交易时
i get this issue while trying to deploy the olympusDao smart contract on rinkeby using hardhat
Error
cannot estimate gas;
transaction may fail or may require manual gas limit
[ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ]
(
reason="execution reverted",
method="estimateGas",
transaction={
"from":"0xBDA87452eDD9c15D0EEA25120410f329fEAA2D78",
"to":"0x1DeB9157508316A24BC0527444B142f563705BD0",
"data":"0xec78f90b0000000000000000000000000000000000000000000000000000000000000001",
"accessList":null
},
error={
"code":-32000,
"message":"execution reverted"
},
code=UNPREDICTABLE_GAS_LIMIT,
version=providers/5.6.6
)
steps to reproduce
- git clone https://github.com/OlympusDAO/olympus-contracts.git
- yarn install
- uncomment "// rinkeby: getChainConfig("rinkeby")" from the hardhat config file
- yarn compile
- yarn deploy:rinkeby
the error comes up on the last script 100_post_deployment.ts when it attempts a transaction
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论