eosio_assert
终止当前action处理,并且回滚所有未完成的变换。
参数
test
- 0 终止, 1 忽略
示例代码
eosio_assert(1 == 2, "One is not equal to two.");
eosio_assert(1 == 1, "One is not equal to one.");
在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器
终止当前action处理,并且回滚所有未完成的变换。
test
- 0 终止, 1 忽略
eosio_assert(1 == 2, "One is not equal to two.");
eosio_assert(1 == 1, "One is not equal to one.");