My contract deployed fine. However, when I try to call an action I get the following error:

Error 3070002: Runtime Error Processing WASM
Error Details:
i64.rem_u by 0

And the log from the nodeos:

1477051ms thread-0   http_plugin.cpp:396           handle_exception     ] FC Exception encountered while processing chain.push_transaction: 3070002 wasm_execution_error: Runtime Error Processing WASM
i64.rem_u by 0
thread-0  binaryen.hpp:76 trap
thread-0  apply_context.cpp:60 exec_one

What does that mean?

  • Can you provide a little bit context and code of your action? I guess you are trying to perform an action on a multi_index...
    – TeeAttack42
    Jul 8 '18 at 16:07
  • It is the createpet on market branch of monstereos.io
    – friedger
    Jul 8 '18 at 19:23
  • I'm not sure how to find the relevant code/action/multi_index
    – friedger
    Jul 8 '18 at 19:23

In the contract a remainder by 0 was calculated. Something like the following:

auto remainder = number % 0;

This threw the error.

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.