Add support for extended-auth account types
Gajumaru Serialization Tests / tests (push) Successful in 11s
Gajumaru Serialization Tests / tests (push) Successful in 11s
This commit is contained in:
@@ -194,7 +194,16 @@ known_types() ->
|
||||
Forms = get_forms(),
|
||||
[{type, _, union, Types}] =
|
||||
[Def || {attribute, _, type, {known_type, Def, []}} <- Forms],
|
||||
[Name || {atom,_, Name} <- Types].
|
||||
lists:flatmap(fun known_type_entry/1, Types).
|
||||
|
||||
known_type_entry({atom, _, Name}) ->
|
||||
[Name];
|
||||
known_type_entry({type, _, tuple,
|
||||
[{atom, _, account_pubkey},
|
||||
{type, _, range, [{integer, _, Lo}, {integer, _, Hi}]}]}) ->
|
||||
[{account_pubkey, N} || N <- lists:seq(Lo, Hi)];
|
||||
known_type_entry(Other) ->
|
||||
error({unsupported_known_type, Other}).
|
||||
|
||||
mapped_prefixes() ->
|
||||
Forms = get_forms(),
|
||||
|
||||
Reference in New Issue
Block a user