Skip to content

Commit

Permalink
Ensure that coinGecoId is not an empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Interchain Adair <[email protected]>
  • Loading branch information
adairrr authored Dec 10, 2024
1 parent f6ff768 commit 9f018e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graz/src/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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,
};
});

Expand Down

0 comments on commit 9f018e2

Please sign in to comment.