0

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();
1

Correct, 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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.