require_evm_signatures_can_be_used

Ensures that this operation is authorizing an operation which is whitelisted for usage with evm_signatures

The operation that is being authorized should be the next operation in the transaction, but it's allowed to have an auth operation or a strategy operation between this operation and the authorized one.

Throws "EVM SIG FORBIDDEN" if:

  • the operation that is being authorized is not whitelisted,

  • there's no operation after this one, or

  • there is only one operation after this one, and it's an auth or strategy operation

Can only be called from an operation, and it should only be called by evm_signatures

See also

is_evm_signatures_authorized_operation

for information on whitelisting operations

is_auth_op

for information on what is an auth operation

core.accounts.strategies.is_strategy_op

for information on what is a strategy operation