Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Dec 11, 2024
1 parent 0d85bd3 commit 057da57
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 24 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
<meta property="twitter:domain" content="%PUBLIC_URL%" />
<script>
var exports = {};
var require = {};
</script>
</head>
<body>
Expand Down
6 changes: 0 additions & 6 deletions src/libs/duckdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/pages/Balance/TransferConvertToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const TransferConvertToken: FC<TransferConvertProps> = ({
{isOpen && (
<div>
<ul className={classNames(styles.items, styles[theme])}>
{[...(token?.bridgeTo || ['Oraichain'])].map((chainId) => {
{networks.map((chainId) => {
const net = findChainByChainId(chainId);
return (
<li
Expand All @@ -389,7 +389,6 @@ const TransferConvertToken: FC<TransferConvertProps> = ({
e.stopPropagation();
const address = await getAddressTransfer(net, walletByNetworks);
setAddressTransfer(address);
setToNetworkChainId(net.chainId);
setIsOpen(false);
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ export default function SelectToken({
(textSearch ? item.name.toLowerCase().includes(textSearch.toLowerCase()) : true)
);

console.log({
listItems
});

return (
<>
<div className={`${styles.selectToken} ${isSelectToken ? styles.active : ''}`}>
Expand Down
5 changes: 0 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
});
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3867,7 +3867,7 @@
react-use "^17.4.0"
react-use-websocket "^4.5.0"

"@oraichain/[email protected].40-beta.1", "@oraichain/oraidex-common@^1.1.27", "@oraichain/oraidex-common@^1.1.32", "@oraichain/oraidex-common@^1.1.6":
"@oraichain/[email protected].32-beta.8", "@oraichain/[email protected].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==
Expand Down Expand Up @@ -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/[email protected]":
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/[email protected]-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"
Expand Down

0 comments on commit 057da57

Please sign in to comment.