Created
July 18, 2021 10:46
-
-
Save tina1998612/997e3b50e81c7323ef74389d21631900 to your computer and use it in GitHub Desktop.
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 <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`"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment