diff --git a/hive/indexer/accounts.py b/hive/indexer/accounts.py index 485320cf3cf658dbfa4beb442e9d268a4e99702d..d4c0b9e6372af7a8f46ab4d03479a3ccd6ac907f 100644 --- a/hive/indexer/accounts.py +++ b/hive/indexer/accounts.py @@ -58,12 +58,17 @@ class Accounts: @classmethod def get_id(cls, name): """Get account id by name. Throw if not found.""" + if isinstance(name, list): + assert name[0] in cls._ids, "account does not exist or was not registered" + return cls._ids[name[0]] assert name in cls._ids, "account does not exist or was not registered" return cls._ids[name] @classmethod def exists(cls, name): """Check if an account name exists.""" + if isinstance(name, list): + return name[0] in cls._ids return name in cls._ids @classmethod