Skip to content

Commit

Permalink
fix: approve ERC-20 with UI
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Jun 5, 2024
1 parent 5909553 commit 0068f45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion composables/zksync/deposit/useTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default (getL1Signer: () => Promise<L1Signer | undefined>) => {
token: transaction.tokenAddress,
amount: transaction.amount,
l2GasLimit: fee.l2GasLimit,
approveERC20: true,
overrides,
});

Expand Down
2 changes: 1 addition & 1 deletion views/transactions/Deposit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0068f45

Please sign in to comment.