From 0068f4584c999e500b203c9dbb76882eeb163a28 Mon Sep 17 00:00:00 2001 From: Bence Haromi Date: Wed, 5 Jun 2024 10:03:24 +0200 Subject: [PATCH] fix: approve ERC-20 with UI --- composables/zksync/deposit/useTransaction.ts | 1 - views/transactions/Deposit.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/composables/zksync/deposit/useTransaction.ts b/composables/zksync/deposit/useTransaction.ts index 7cd33a109..1b8811878 100644 --- a/composables/zksync/deposit/useTransaction.ts +++ b/composables/zksync/deposit/useTransaction.ts @@ -44,7 +44,6 @@ export default (getL1Signer: () => Promise) => { token: transaction.tokenAddress, amount: transaction.amount, l2GasLimit: fee.l2GasLimit, - approveERC20: true, overrides, }); diff --git a/views/transactions/Deposit.vue b/views/transactions/Deposit.vue index ccfc0151a..fd43f9cc8 100644 --- a/views/transactions/Deposit.vue +++ b/views/transactions/Deposit.vue @@ -486,7 +486,7 @@ const { } = useAllowance( computed(() => account.value.address), computed(() => selectedToken.value?.address), - async () => (await providerStore.requestProvider().getDefaultBridgeAddresses()).erc20L1 + async () => (await providerStore.requestProvider().getDefaultBridgeAddresses()).sharedL1 ); const enoughAllowance = computed(() => { if (!allowance.value || !selectedToken.value) {