Skip to content

Commit 6314493

Browse files
committed
fix: fetch asset for testnet
1 parent abf2d52 commit 6314493

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/components/TxDialog/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async function initData() {
192192
) {
193193
const client = new ChainRegistryClient();
194194
client
195-
.fetchAssetsList(props.registryName)
195+
.fetchAssetsList(props.registryName.includes('testnet') && !props.registryName.startsWith('testnets/') ? `testnets/${props.registryName}` : props.registryName)
196196
.then((x) => {
197197
x.assets.forEach((a) => {
198198
metadatas.value[a.base] = a as CoinMetadata;

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const HIPPO_TESTNET: Config = {
2121
endpoint: 'https://api.testnet.hippo-protocol.com',
2222
chainId: 'hippo-protocol-testnet-1',
2323
params: JSON.stringify({}), //change when needed(vote, ...)
24-
chainName: 'testnets/hippoprotocoltestnet',
24+
chainName: 'hippoprotocoltestnet',
2525
};
2626
2727
const sender = ref('') //Connected wallet address

0 commit comments

Comments
 (0)