gpt4 book ai didi

nearprotocol - 近 "ExecutionError":"Exceeded the prepaid gas."

转载 作者:行者123 更新时间:2023-12-05 09:03:18 27 4
gpt4 key购买 nike

我正在学习 https://near.academy/near101/chapter-6 中的教程

其中一个步骤是运行此命令(但使用我的帐户):

near call museum.testnet add_meme \
'{"meme" : "bob", "title" : "god", "data" : "https://9gag.com/gag/ad8K0vj", "category" : 4}' \
--accountId YOUR_ACCOUNT_NAME.testnet --amount 3

我不断收到如下错误:

Log [museum.testnet]: attempting to create meme
Failure [museum.testnet]: Error: {"index":0,"kind":{"ExecutionError":"Exceeded the prepaid gas."}}

Transaction 9F9VUps6nN4myC8wzBUb1W1GTR4xV5WE had 30000000000000 of attached gas but used 2428115526258 of gas

这是一个令人困惑的错误消息,因为 30,000,000,000,000 > 2,428,178,132,410。

我也尝试过使用 --amount 4 运行命令,但我遇到了同样的错误。

我做错了什么?

最佳答案

Benji https://discord.com/channels/490367152054992913/542945453533036544/912840246524260355建议我不使用 --amount 3,而是使用 --amount 3 --gas=75000000000000,这很有效。

关于nearprotocol - 近 "ExecutionError":"Exceeded the prepaid gas.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70088651/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com