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 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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