Skip to content

Commit

Permalink
Merge pull request #56 from eco-stake/add-bech32-prefix-chain-index
Browse files Browse the repository at this point in the history
Add bech32_prefix to chains index response
  • Loading branch information
tombeynon authored Nov 10, 2022
2 parents 831fc9c + ebe08a8 commit 56a03bd
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 56a03bd

Please sign in to comment.