Created
April 9, 2019 07:08
-
-
Save mtabz/e266333df6c71533052ee354a346eaba to your computer and use it in GitHub Desktop.
EOSIO Helloworld
This file contains 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 contract { | |
public: using contract::contract; | |
[[eosio::action]] void hi( name user ) { | |
require_auth( user ); | |
print( "Hello, ", user); | |
} | |
}; | |
EOSIO_DISPATCH( hello, (hi)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment