Ganache-Cli

還原ERC20:轉賬金額超過餘額

  • April 5, 2020

我嘗試通過 ganache 中的 interledger 從 ERC-20 發送到其他 ERC-20,但收到此錯誤:

    {
<     "id": 3451,
<     "jsonrpc": "2.0",
<     "error": {
<       "message": "VM Exception while processing transaction: revert ERC20: transfer amount exceeds balance",
<       "code": -32000,
<       "data": {
<         "stack": "c: VM Exception while processing transaction: revert ERC20: transfer amount exceeds balance\n    at Function.c.fromResults (/app/ganache-core.docker.cli.js:2:257479)\n    at e.exports (/app/ganache-core.docker.cli.js:53:1406305)",
<         "name": "c"
<       }
<     }
<   }

(但我確信餘額已滿,我用松露檢查了它們)

你說得對,我只是使用了錯誤的發件人地址(憑證)(餘額為空)。感謝您的回答!

引用自:https://ethereum.stackexchange.com/questions/82102