error: else expression without matching if
000035b: error: OnElseExpr callback failed
but if I use [[eosio::on_notify("eosio.token::transfer")]], compilation is success
解决
升级 eosio.cdt v1.6.2+
参考
https://github.com/EOSIO/eosio.cdt/issues/497
https://github.com/EOSIO/eosio.cdt/blob/796ff8bee9a0fc864f665a0a4d018e0ff18ac383/tests/unit/test_contracts/simple_tests.cpp
https://github.com/EOSIO/eosio.cdt/blob/796ff8bee9a0fc864f665a0a4d018e0ff18ac383/docs/upgrading/1.5-to-1.6.md
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/785.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!