Skip to content

Commit

Permalink
Add bech32_prefix to chains index response
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Nov 10, 2022
1 parent beabd4e commit ebe08a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chains/chainsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,6 +15,7 @@ function ChainsController(registry) {
pretty_name,
chain_id,
status,
bech32_prefix,
symbol: baseAsset?.symbol,
display: baseAsset?.display?.denom,
denom: baseAsset?.denom,
Expand Down

0 comments on commit ebe08a8

Please sign in to comment.