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?

  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

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.