Last active
September 23, 2018 11:12
-
-
Save stablexbt/2fad4b023bc9fa8475dbac06e2adb0bb to your computer and use it in GitHub Desktop.
EOS hello world smart contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <eosiolib/eosio.hpp> | |
| #include <eosiolib/print.hpp> | |
| using namespace eosio; | |
| class hello : public eosio::contract { | |
| public: | |
| using contract::contract; | |
| [[eosio::action]] | |
| void hi() { | |
| print( "Hello, world!"); | |
| } | |
| }; | |
| EOSIO_ABI( hello, (hi) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment