Created
April 5, 2018 21:13
-
-
Save bytemaster/58d45d13dbf8732c8d467b6415a44df9 to your computer and use it in GitHub Desktop.
Hello World Contract for EOSIO
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; | |
struct hello : public contract { | |
using contract::contract; | |
void hi( name user ) { | |
print( “Hello, “, user ); | |
} | |
}; | |
EOSIO_ABI( hello, (hi) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please provide additional example of the new contract interface, looking forward for it!
Thumbs up for dawn 3.0 !