parse_account_ids_from_gtv

function parse_account_ids_from_gtv(gtv: gtv): (allowlist: allowlist, require_same: boolean)(source)

Reads a GTV-encoded moduleArgs field containing account IDs.

Throws "CONFIG ERROR" if the config cannot be parsed. Common cases are:

  • a list of values is received, alongside which CURRENT_ACCOUNT_REF or ANY_REF are found

  • IDs cannot be parsed as hex byte_arrays

Parameters

gtv

the GTV-encoded configuration to parse