diff --git a/lib/components/TxDialog/index.vue b/lib/components/TxDialog/index.vue index 6d21cc7..cb6a931 100644 --- a/lib/components/TxDialog/index.vue +++ b/lib/components/TxDialog/index.vue @@ -111,7 +111,7 @@ async function initData() { metadatas.value = {}; view.value = 'input'; p.value = JSON.parse(props.params || '{}'); - memo.value = props.type?.toLowerCase() === 'send' ? '' : 'ping.pub'; + memo.value = props.type?.toLowerCase() === 'send' ? '' : 'Oraichain'; feeAmount.value = Number(p.value?.fees?.amount || 2000); try { diff --git a/lib/components/TxDialog/messages/Unbond.vue b/lib/components/TxDialog/messages/Unbond.vue index 6125d25..47c1696 100644 --- a/lib/components/TxDialog/messages/Unbond.vue +++ b/lib/components/TxDialog/messages/Unbond.vue @@ -58,7 +58,7 @@ const isValid = computed(() => { ok = false; error = 'Sender is empty'; } - if (!params.value.validatorAddress) { + if (!params.value.validator_address) { ok = false; error = 'Validator is empty'; } diff --git a/lib/utils/http.ts b/lib/utils/http.ts index e094fd4..7968fab 100644 --- a/lib/utils/http.ts +++ b/lib/utils/http.ts @@ -167,6 +167,25 @@ export async function getBalanceMetadata( ): Promise<{ metadata: Metadata }> { // const url = `${endpoint}/cosmos/bank/v1beta1/denoms_metadata/${denom}`; // return get(url); + if (denom === 'orai') + return { + metadata: { + description: 'The native token of Osmosis', + denomUnits: [ + { + denom: 'orai', + exponent: 6, + aliases: [], + }, + ], + base: 'orai', + display: 'orai', + name: '', + symbol: '', + uri: '', + uriHash: '', + }, + }; const queryClient = createQueryClient(endpoint); const res = await queryClient.bank.denomMetadata(denom); return { metadata: res };