If yes, then how do I make sure that anyone or any specified address can call a method? If not then what is the usage of permission_level (_self ...)
?
action{
permission_level{_self, "active"_n},
inf_account,
"bet"_n, memo}
}.play();
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityCorrect, it means only the account on which the contract resides can call this action. In general, _self
refers to the instance of eosio::name
that contains the account name where the contract resides