parse_fee_asset

function parse_fee_asset(input: map<text, gtv>, module_name: text): fee_asset(source)

Parses a dictionary retrieved from the module_args of a module and returns the corresponding fee_asset.

Throws "CONFIG ERROR" if the fee_asset is invalid.

Parameters

input

the dictionary retrieved from the module_args

module_name

the name of the module for better error messages

See also

fee_asset

for a definition of invalid values.