Skip to content

Commit

Permalink
fix: ethers import
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Mar 6, 2024
1 parent c9ada59 commit 561c99c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
4 changes: 2 additions & 2 deletions composables/zksync/deposit/useFee.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BigNumber } from "ethers";
import { parseEther } from "ethers/lib/utils";
import { L1_RECOMMENDED_MIN_ERC20_DEPOSIT_GAS_LIMIT } from "zksync-ethers/src/utils";
import { utils } from "zksync-ethers";

import type { Token, TokenAmount } from "@/types";
import type { BigNumberish } from "ethers";
Expand Down Expand Up @@ -80,7 +80,7 @@ export default (tokens: Ref<Token[]>, balances: Ref<TokenAmount[] | undefined>)
};
const getERC20TransactionFee = () => {
return {
l1GasLimit: BigNumber.from(L1_RECOMMENDED_MIN_ERC20_DEPOSIT_GAS_LIMIT),
l1GasLimit: BigNumber.from(utils.L1_RECOMMENDED_MIN_ERC20_DEPOSIT_GAS_LIMIT),
};
};
const getGasPrice = async () => {
Expand Down
8 changes: 0 additions & 8 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ export default defineNuxtConfig({
},
},
},
build: {
target: "es2020",
},
optimizeDeps: {
esbuildOptions: {
target: "es2020",
},
},
},
devtools: { enabled: true },
});
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"target": "es2020"
}
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 561c99c

Please sign in to comment.