近"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

这是一个令人困惑的错误消息,因为300000000000>2428178132410.

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

我做错了什么?

Benjihttps://discord.com/channels/490367152054992913/542945453533036544/912840246524260355建议我用--amount 3 --gas=75000000000000代替--amount 3

如果您使用的是windows,那么您应该在每个"之前使用反斜杠;。

near-call museum.testnet add_meme‘{"模因":"鲍勃","标题":"笑话","数据":";https://9gag.com/gag/aAGQ97L"quot;类别":4} '--accountId NAME.testnet--金额3--天然气=75000000000000

最新更新