From 218a13749c29341926d0ba041c1d30b1f69bf07b Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Sat, 14 Sep 2024 12:18:47 +0800 Subject: [PATCH 1/2] fix withdraw token select issue --- store/zksync/wallet.ts | 2 ++ views/transactions/Withdraw.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/store/zksync/wallet.ts b/store/zksync/wallet.ts index 64b59409c..352c7beb4 100644 --- a/store/zksync/wallet.ts +++ b/store/zksync/wallet.ts @@ -104,6 +104,7 @@ export const useZkSyncWalletStore = defineStore("zkSyncWallet", () => { symbol: token!.symbol!, decimals: token!.decimals, amount: balance, + networkKey: token!.networkKey || undefined, }; }); //add merge tokens @@ -117,6 +118,7 @@ export const useZkSyncWalletStore = defineStore("zkSyncWallet", () => { symbol: token!.symbol!, decimals: token!.decimals, amount: "0", + networkKey: token!.networkKey || undefined, }); } } diff --git a/views/transactions/Withdraw.vue b/views/transactions/Withdraw.vue index 6b6f78b1a..4d78f016d 100644 --- a/views/transactions/Withdraw.vue +++ b/views/transactions/Withdraw.vue @@ -634,6 +634,7 @@ const availableTokens = computed(() => { } return Object.values(tokens.value); }); +console.log("availableTokens: ", availableTokens); const availableBalances = computed(() => { if (props.type === "withdrawal") { if (!tokens.value) return []; From 32c094a6614ec07ae58ea459343e9d8840ca8d22 Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Sat, 14 Sep 2024 12:20:00 +0800 Subject: [PATCH 2/2] update text --- pages/transfers.vue | 2 +- views/transactions/Withdraw.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/transfers.vue b/pages/transfers.vue index 793bbb8ce..9d4e4ea95 100644 --- a/pages/transfers.vue +++ b/pages/transfers.vue @@ -48,7 +48,7 @@
- Completed transfers + Completed transactions
diff --git a/views/transactions/Withdraw.vue b/views/transactions/Withdraw.vue index 4d78f016d..5a7a178cc 100644 --- a/views/transactions/Withdraw.vue +++ b/views/transactions/Withdraw.vue @@ -634,7 +634,7 @@ const availableTokens = computed(() => { } return Object.values(tokens.value); }); -console.log("availableTokens: ", availableTokens); + const availableBalances = computed(() => { if (props.type === "withdrawal") { if (!tokens.value) return [];