From ebe08a86f4772dda4344b0315350352f4f12ebcc Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Thu, 10 Nov 2022 12:07:54 +0000 Subject: [PATCH] Add bech32_prefix to chains index response --- chains/chainsController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chains/chainsController.js b/chains/chainsController.js index 12d9a88..83f57f9 100644 --- a/chains/chainsController.js +++ b/chains/chainsController.js @@ -3,7 +3,7 @@ import { renderJson } from '../utils.js'; function ChainsController(registry) { async function chainResponse(chain, summarize) { - const { chain_name, network_type, pretty_name, chain_id, status, explorers, keywords, codebase } = chain.chain; + const { chain_name, network_type, pretty_name, chain_id, status, explorers, keywords, codebase, bech32_prefix } = chain.chain; const baseAsset = chain.baseAsset const apis = await chain.apis() const { params, versions, services, prices, assets } = chain @@ -15,6 +15,7 @@ function ChainsController(registry) { pretty_name, chain_id, status, + bech32_prefix, symbol: baseAsset?.symbol, display: baseAsset?.display?.denom, denom: baseAsset?.denom,