近“ExecutionError”:“超出了预付费气体。”

Rya*_*yan 2 nearprotocol

我正在浏览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
Run Code Online (Sandbox Code Playgroud)

我不断收到如下错误:

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
Run Code Online (Sandbox Code Playgroud)

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

我也尝试运行该命令--amount 4,但出现了同样的错误。

我究竟做错了什么?

Rya*_*yan 8

Benji 在https://discord.com/channels/490367152054992913/542945453533036544/912840246524260355建议不要使用--amount 3I use --amount 3 --gas=75000000000000,这有效。