These docs are for v1.3.0. Click to read the latest docs for v1.6.

eosio_assert

Aborts processing of this action and unwinds all pending changes.

Aborts processing of this action and unwinds all pending changes if the test condition is true

Parameters

  • test - 0 to abort, 1 to ignore

Example:

eosio_assert(1 == 2, "One is equal to two.");
eosio_assert(1 != 1, "One is not equal to one.");