diff --git a/src/utils/getProperties.ts b/src/utils/getProperties.ts index 3ad17f5..59f76d7 100644 --- a/src/utils/getProperties.ts +++ b/src/utils/getProperties.ts @@ -10,15 +10,15 @@ export async function getProperties(api: ApiPromise): Promise { const specName = api.runtimeVersion.specName.toString() const specVersion = api.runtimeVersion.specVersion.toNumber() - if (!base58Prefix) { + if (base58Prefix === undefined) { throw new ChainError('the base58 prefix was not found for this chain') } - if (!decimals) { + if (decimals === undefined) { throw new ChainError('the chain decimals were not found for this chain') } - if (!tokenSymbol) { + if (tokenSymbol === undefined || tokenSymbol === '') { throw new ChainError('the token symbol was not found for this chain') }