Skip to content

Instantly share code, notes, and snippets.

@stablexbt
Last active September 23, 2018 11:12
Show Gist options
  • Select an option

  • Save stablexbt/2fad4b023bc9fa8475dbac06e2adb0bb to your computer and use it in GitHub Desktop.

Select an option

Save stablexbt/2fad4b023bc9fa8475dbac06e2adb0bb to your computer and use it in GitHub Desktop.
EOS hello world smart contract
#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