FUNCTION

_validate_evm_arguments

function _validate_evm_arguments(auth_args: list<gtv>, required_flags: set<text>, account: account, auth_descriptor: account_auth_descriptor): evm_auth_args

Verifies that the arguments passed to the evm_auth operation are valid.

Throws "INPUT ERROR" if the param passed in auth_args has any number of elements other than three.

Throws "UNAUTHORIZED ACCESS" if the auth descriptor does not have the necessary flags to authorize this operation.

Parameters

  • auth_args — the arguments passed to evm_auth
  • required_flags — the flags that this operation requires
  • account — the account that the user authenticated as
  • auth_descriptor — the auth descriptor the user is authorizing with

Returns

an object containing the validated arguments for evm_auth

© 2024 Chromia