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?

1 Answer 1

  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 and acknowledge you have read our privacy policy.

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