diff --git a/hive/indexer/accounts.py b/hive/indexer/accounts.py index cf4faa7083041f43ee48cb6b6a979003cdb12517..76fa2b1f1f83c948a9965adceca088eb8fa7130f 100644 --- a/hive/indexer/accounts.py +++ b/hive/indexer/accounts.py @@ -58,9 +58,7 @@ 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 isinstance(name, str), "account name should be string" assert name in cls._ids, "account does not exist or was not registered" return cls._ids[name]