附近 "ExecutionError":"Exceeded the prepaid gas."

NEAR "ExecutionError":"Exceeded the prepaid gas."

我正在学习 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 代替命令,但我得到了同样的错误。

我做错了什么?

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

如果您使用 windows 那么您应该在每个 ".

之前使用反斜杠

接近通话 museum.testnet add_meme '{"meme" : "Bob", "title" : "Jokes", "data" : "https://9gag.com/gag/aAGQ97L", "category" : 4}' --accountId NAME.testnet --amount 3 --gas=75000000000000