Skip to content

Instantly share code, notes, and snippets.

@PhillipHamnett
PhillipHamnett / hello.cpp
Created July 7, 2020 06:49
hello world unit test code
#include <hello.hpp>
[[eosio::action]]
void hello::hi( name nm ) {
print_f("Name : %\n", nm);
}
[[eosio::action]]
void hello::check( name nm ) {
print_f("Name : %\n", nm);
eosio::check(nm == "hello"_n, "check name not equal to `hello`");
### Keybase proof
I hereby claim:
* I am philliphamnett on github.
* I am phamnett (https://keybase.io/phamnett) on keybase.
* I have a public key ASDxwxbyu_KvFhFaXGdhTM2-TW0t1BONTjBwea9Azg_WuQo
To claim this, I am signing this object: