From 057da5725dd81916f1ad948f7df159776a0aa382 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Wed, 11 Dec 2024 11:38:36 +0700 Subject: [PATCH] fix --- index.html | 1 - src/libs/duckdb.ts | 6 ------ src/pages/Balance/TransferConvertToken/index.tsx | 3 +-- .../Swap/components/SelectToken/SelectToken.tsx | 4 ---- vite.config.ts | 5 ----- yarn.lock | 12 ++++++------ 6 files changed, 7 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 2a070db6e..e6b1cc0a6 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,6 @@ diff --git a/src/libs/duckdb.ts b/src/libs/duckdb.ts index 9091e7c36..49177b710 100644 --- a/src/libs/duckdb.ts +++ b/src/libs/duckdb.ts @@ -54,10 +54,6 @@ export class DuckDb { protected constructor(public readonly conn: duckdb.AsyncDuckDBConnection, public readonly db: duckdb.AsyncDuckDB) {} static async create() { - console.log({ - DuckDb: DuckDb.instance - }); - if (!DuckDb.instance) { // Select a bundle based on browser checks // Instantiate the asynchronus version of DuckDB-Wasm @@ -67,8 +63,6 @@ export class DuckDb { ); await db.instantiate(eh_worker); const conn = await db.connect(); - console.log({ conn }); - DuckDb.instance = new DuckDb(conn, db); } return DuckDb.instance; diff --git a/src/pages/Balance/TransferConvertToken/index.tsx b/src/pages/Balance/TransferConvertToken/index.tsx index 3e98afd98..72d09bf55 100644 --- a/src/pages/Balance/TransferConvertToken/index.tsx +++ b/src/pages/Balance/TransferConvertToken/index.tsx @@ -380,7 +380,7 @@ const TransferConvertToken: FC = ({ {isOpen && (
    - {[...(token?.bridgeTo || ['Oraichain'])].map((chainId) => { + {networks.map((chainId) => { const net = findChainByChainId(chainId); return (
  • = ({ e.stopPropagation(); const address = await getAddressTransfer(net, walletByNetworks); setAddressTransfer(address); - setToNetworkChainId(net.chainId); setIsOpen(false); }} > diff --git a/src/pages/UniversalSwap/Swap/components/SelectToken/SelectToken.tsx b/src/pages/UniversalSwap/Swap/components/SelectToken/SelectToken.tsx index 3b354c0c4..97f7a6835 100644 --- a/src/pages/UniversalSwap/Swap/components/SelectToken/SelectToken.tsx +++ b/src/pages/UniversalSwap/Swap/components/SelectToken/SelectToken.tsx @@ -84,10 +84,6 @@ export default function SelectToken({ (textSearch ? item.name.toLowerCase().includes(textSearch.toLowerCase()) : true) ); - console.log({ - listItems - }); - return ( <>
    diff --git a/vite.config.ts b/vite.config.ts index 3d7519977..d19df1a10 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -40,10 +40,5 @@ export default defineConfig({ }, optimizeDeps: { exclude: ['node_modules/.cache'] - }, - esbuild: { - supported: { - 'top-level-await': true //browsers can handle top-level-await features - } } }); diff --git a/yarn.lock b/yarn.lock index 450e91bd4..0150979d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3867,7 +3867,7 @@ react-use "^17.4.0" react-use-websocket "^4.5.0" -"@oraichain/oraidex-common@1.1.40-beta.1", "@oraichain/oraidex-common@^1.1.27", "@oraichain/oraidex-common@^1.1.32", "@oraichain/oraidex-common@^1.1.6": +"@oraichain/oraidex-common@1.1.32-beta.8", "@oraichain/oraidex-common@1.1.40-beta.1", "@oraichain/oraidex-common@^1.1.32", "@oraichain/oraidex-common@^1.1.6": version "1.1.40-beta.1" resolved "https://registry.yarnpkg.com/@oraichain/oraidex-common/-/oraidex-common-1.1.40-beta.1.tgz#db74f7bf3a34c2bc8dc965f6f4b44a7a0951b478" integrity sha512-17KpgbJyHwqEfndmASqkn7X4WZBeIXy0ONzzg5vwaVIsuBKx76hqah14chtqWUIDJSdd7FFeR16KhIAlMWOnYg== @@ -3909,13 +3909,13 @@ resolved "https://registry.yarnpkg.com/@oraichain/oraidex-contracts-sdk/-/oraidex-contracts-sdk-1.0.45.tgz#42dae0fdd9e005f920ba305b987009f791acc365" integrity sha512-/nYztdxEX5LQM4DMJQmi9HvZrBVoY3nLAmYqSKZGZ0U1h1SxU7O/o22R3/pQwB+sAJdcibaI8ygC0ov7jC8paA== -"@oraichain/oraidex-universal-swap@1.1.23": - version "1.1.23" - resolved "https://registry.yarnpkg.com/@oraichain/oraidex-universal-swap/-/oraidex-universal-swap-1.1.23.tgz#2f6c5485728f096cbc11fba517376737c899e610" - integrity sha512-gSk4B84kT2qGx7Nc2uqiRQevS1447DWgmNAOdx4mNDUB4a6nJ79ie/hYGYemddEv6UQ1T/ppao9oxVjWmBecmQ== +"@oraichain/oraidex-universal-swap@1.1.23-beta.2": + version "1.1.23-beta.2" + resolved "https://registry.yarnpkg.com/@oraichain/oraidex-universal-swap/-/oraidex-universal-swap-1.1.23-beta.2.tgz#85c1e388628ad9e4189d6260264f93f01a8e37a1" + integrity sha512-5Jd6ywb0ROhzYBSaRGaB8nVg/D7qR5uUIIVv5lA06Sri4GDTAf1jfD6tZ2I2aWF5Bej/t/eXWNTOIxEIDE9wjg== dependencies: "@oraichain/common" "^1.0.3" - "@oraichain/oraidex-common" "^1.1.27" + "@oraichain/oraidex-common" "1.1.32-beta.8" "@oraichain/oraidex-contracts-sdk" "^1.0.49" "@oraichain/osor-api-contracts-sdk" "^1.0.2" bech32 "1.1.4"