Skip to content

Instantly share code, notes, and snippets.

@mtabz
Created April 9, 2019 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtabz/e266333df6c71533052ee354a346eaba to your computer and use it in GitHub Desktop.
Save mtabz/e266333df6c71533052ee354a346eaba to your computer and use it in GitHub Desktop.
EOSIO Helloworld
#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