1

I am calling a method that is completely commented out. I am calling it from EOStudio and from command line tools. Is this a bug or does someone know how to fix this?

assertion failure with message: read
{
  "code": 500,
  "message": "Internal Service Error",
  "error": {
    "code": 3050003,
    "name": "eosio_assert_message_exception",
    "what": "eosio_assert_message assertion failure",
    "details": [
      {
        "message": "assertion failure with message: read",
        "file": "wasm_interface.cpp",
        "line_number": 924,
        "method": "eosio_assert"
      }
    ]
  }
}
0

Check the ABI file to make sure that the arguments match what the action is expecting. This error is usually caused by some kind of mismatch between the ABI file and the on-chain data.

Examples of when you get this are:

  1. Passing incorrect argument list to an action when calling inline (for example, passing a char* instead of a string)
  2. Creating table entries, and then changing the fields in a table without first deleting all the table entries (see Table Migration)
  3. Updating your code without also updating your ABI file.

If you update your question to show the example action and the command you are calling to execute the action, then I will edit my answer to give a more specific solution.

  • it was either (2) or a slightly different thing. i created a table but didn't set the index variable. – errolflynn Jun 28 at 16:03
  • Is it fixed now? – Phillip Hamnett - EOS42 Jun 28 at 16:14
  • yes, but i'm just testing. i deployed to a different account. alternatively i could have re-created the table row with emplace() in the contract deployment with a maintenance method – errolflynn Jun 28 at 16:31
  • Ok. Well if my answer satisfies you, you can accept it so that others can also learn from this – Phillip Hamnett - EOS42 Jun 28 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.