FUNCTION

fetch_account_and_auth_descriptor

function fetch_account_and_auth_descriptor(auth_args: list<gtv>): (account, account_auth_descriptor)

Extracts the account and account_auth_descriptor from the args of the auth operation, which is one of the operations supported by is_auth_op.

Throws if the account referred to in auth_args does not exist

Throws "MISSING AUTH DESCRIPTOR" if the auth descriptor referred to in auth_args is not associated with the account id specified in auth args or does not exist altogether.

Parameters

  • auth_args — the arguments passed to the auth operation.
© 2024 Chromia