Closed jakub-zarembinski closed 5 years ago
CDT can be switched on by editing the core/config.py file and removing comments in those two lines:
core/config.py
# eosio_cpp_ = ("EOSIO_CPP", ["/usr/local/eosio.cdt/bin/eosio-cpp"]) # eosio_abigen_ = ("EOSIO_ABIGEN", ["/usr/local/eosio.cdt/bin/eosio-abigen"])
An example of annotations required by CDT:
[[eosio::action]] void hi( account_name user ) { logger_info( "debug user name: ", name{user} ); require_auth( user ); print( "Hello, ", name{user} ); }
Done, will be effective in the next edition.
CDT can be switched on by editing the
core/config.py
file and removing comments in those two lines:An example of annotations required by CDT: