diff --git a/package-lock.json b/package-lock.json index daeb89da..8ca9270c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "zkcli-dockerized-node": "^1.0.9", "zkcli-in-memory-node": "^1.0.8", "zkcli-portal": "^1.0.3", - "zksync-ethers": "^5.1.0" + "zksync-ethers": "5.9.1" }, "bin": { "zksync-cli": "bin/index.js" @@ -13837,12 +13837,15 @@ } }, "node_modules/zksync-ethers": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/zksync-ethers/-/zksync-ethers-5.1.0.tgz", - "integrity": "sha512-iks12h2/a7aS3kLm48oQWRm5HNViJP7lnGMSx4yidEB0Xob2MTgBv5G/9x40GaiCA1Yld8XIgC5YfcMmHWnh5Q==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/zksync-ethers/-/zksync-ethers-5.9.1.tgz", + "integrity": "sha512-Y1zxoVxOz1cujw+5RcJVR6rANpX398DVFtUIOkovciltyk1hKetavGmCTA5fCmfqoA074Jjxl6SpX7vrDcUVSg==", "dependencies": { "ethers": "~5.7.0" }, + "engines": { + "node": ">=16.0.0" + }, "peerDependencies": { "ethers": "~5.7.0" } @@ -23484,9 +23487,9 @@ } }, "zksync-ethers": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/zksync-ethers/-/zksync-ethers-5.1.0.tgz", - "integrity": "sha512-iks12h2/a7aS3kLm48oQWRm5HNViJP7lnGMSx4yidEB0Xob2MTgBv5G/9x40GaiCA1Yld8XIgC5YfcMmHWnh5Q==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/zksync-ethers/-/zksync-ethers-5.9.1.tgz", + "integrity": "sha512-Y1zxoVxOz1cujw+5RcJVR6rANpX398DVFtUIOkovciltyk1hKetavGmCTA5fCmfqoA074Jjxl6SpX7vrDcUVSg==", "requires": { "ethers": "~5.7.0" } diff --git a/package.json b/package.json index d0766df7..7256948d 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "scripts": { "build": "tsc -p tsconfig.build.json", - "dev": "cross-env NODE_ENV=development ts-node-esm src/index.ts", + "dev": "cross-env NODE_ENV=development node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts", "typecheck": "tsc -p . --noEmit", "lint": "eslint . --ext ./src/* --fix --ignore-path .gitignore --no-error-on-unmatched-pattern --max-warnings=0", "commitlint": "commitlint --edit" @@ -49,7 +49,7 @@ "zkcli-dockerized-node": "^1.0.9", "zkcli-in-memory-node": "^1.0.8", "zkcli-portal": "^1.0.3", - "zksync-ethers": "^5.1.0" + "zksync-ethers": "5.9.1" }, "devDependencies": { "@commitlint/cli": "^17.7.1", diff --git a/src/commands/bridge/deposit.ts b/src/commands/bridge/deposit.ts index cd48d2c3..979a1bba 100644 --- a/src/commands/bridge/deposit.ts +++ b/src/commands/bridge/deposit.ts @@ -125,6 +125,7 @@ export const handler = async (options: DepositOptions) => { token: token.l1Address, amount: decimalToBigNumber(options.amount), approveERC20: true, + approveBaseERC20: true, }); await depositHandle.waitL1Commit(); spinner.stop();