Assert min assets

This commit is contained in:
abefernan
2023-06-26 11:59:01 +02:00
parent 996b65ae08
commit b8fa361779
+1
View File
@@ -136,6 +136,7 @@ const ChainSelect = () => {
try {
const chainData = await getChainFromRegistry(chainOption.path);
const registryAssets = await getAssetsFromRegistry(chainOption.path);
assert(registryAssets.length >= 1, "No assets found in registry");
const firstAsset = registryAssets[0];
const nodeAddress = await getNodeFromArray(chainData.apis.rpc);