From add6a00d804155c9cf6335e9b7a1dc47b582544c Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Wed, 11 Dec 2024 14:31:52 +0700 Subject: [PATCH] fix token ton in osmosis bridge --- src/libs/duckdb.ts | 2 +- src/pages/Balance/TransferConvertToken/index.tsx | 2 +- src/pages/Balance/index.tsx | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/libs/duckdb.ts b/src/libs/duckdb.ts index 49177b710..21a248dbc 100644 --- a/src/libs/duckdb.ts +++ b/src/libs/duckdb.ts @@ -1,7 +1,7 @@ import { NetworkChainId } from '@oraichain/oraidex-common'; import * as duckdb from '@duckdb/duckdb-wasm'; -import eh_worker from '@duckdb/duckdb-wasm/dist/duckdb-browser-eh.worker.js?url'; import { get, set } from 'idb-keyval'; +import eh_worker from '@duckdb/duckdb-wasm/dist/duckdb-eh.wasm?url'; export type TransactionHistory = { initialTxHash: string; diff --git a/src/pages/Balance/TransferConvertToken/index.tsx b/src/pages/Balance/TransferConvertToken/index.tsx index 72d09bf55..034aae3f4 100644 --- a/src/pages/Balance/TransferConvertToken/index.tsx +++ b/src/pages/Balance/TransferConvertToken/index.tsx @@ -380,7 +380,7 @@ const TransferConvertToken: FC = ({ {isOpen && (
    - {networks.map((chainId) => { + {[...(token?.bridgeTo || ['Oraichain'])].map((chainId) => { const net = findChainByChainId(chainId); return (
  • = () => { } //------------------------------------------------------- - console.log({ - from, - newToToken - }); - const universalSwapHandler = new UniversalSwapHandler( { sender: { cosmos: cosmosAddress, evm: latestEvmAddress, tron: tronAddress },