在elther.js上执行交易时,无法预测的_gas_limit

发布于 2025-01-31 12:59:30 字数 974 浏览 2 评论 0原文

在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

the error comes up on the last script 100_post_deployment.ts when it attempts a transaction

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文