From 9f018e2f7b65d871a46621e5daa29693d1f35398 Mon Sep 17 00:00:00 2001 From: Interchain Adair <32375605+adairrr@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:27:27 -0800 Subject: [PATCH] Ensure that coinGecoId is not an empty string Signed-off-by: Interchain Adair <32375605+adairrr@users.noreply.github.com> --- packages/graz/src/cli.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/graz/src/cli.mjs b/packages/graz/src/cli.mjs index 90ffb22..1ffff49 100755 --- a/packages/graz/src/cli.mjs +++ b/packages/graz/src/cli.mjs @@ -238,7 +238,7 @@ const makeRecord = async (client, { filter = "" } = {}) => { coinMinimalDenom: chain.assets?.find((asset) => asset.denom === token.denom)?.denom_units[0]?.denom || token.denom, coinDecimals: Number(chain.assets?.find((asset) => asset.denom === token.denom)?.decimals), - coinGeckoId: chain.assets?.find((asset) => asset.denom === token.denom)?.coingecko_id || "", + coinGeckoId: chain.assets?.find((asset) => asset.denom === token.denom)?.coingecko_id || undefined, gasPriceStep: { low: Number(token.low_gas_price), average: Number(token.average_gas_price), @@ -252,7 +252,7 @@ const makeRecord = async (client, { filter = "" } = {}) => { coinMinimalDenom: chain.assets?.find((asset) => asset.denom === token.denom)?.denom_units[0]?.denom || token.denom, coinDecimals: Number(chain.assets?.find((asset) => asset.denom === token.denom)?.decimals), - coinGeckoId: chain.assets?.find((asset) => asset.denom === token.denom)?.coingecko_id || "", + coinGeckoId: chain.assets?.find((asset) => asset.denom === token.denom)?.coingecko_id || undefined, }; });