require_auth()
asserts that a particular auth is present.
How to write a contract that proceeds if and only if at least one of a set of auths is present?
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 communityrequire_auth()
asserts that a particular auth is present.
How to write a contract that proceeds if and only if at least one of a set of auths is present?
eosio_assert(
has_auth(accounta) || has_auth(accountb),
"missing required authority of accounta or accountb");
See: https://eosio.github.io/eosio.cdt/1.5.0/group__action.html#function-hasauth