Skip to content

Commit

Permalink
fix: use zksync-ethers instead of zksync-web3 package
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Jan 30, 2024
1 parent ed11183 commit 4708936
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"zkcli-dockerized-node": "^1.0.9",
"zkcli-in-memory-node": "^1.0.7",
"zkcli-portal": "^1.0.3",
"zksync-web3": "^0.14.4"
"zksync-ethers": "^5.1.0"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Logger from "../../../utils/logger.js";

import type { L2Chain } from "../../../data/chains.js";
import type { AsyncDynamicQuestionProperty, DistinctChoice } from "inquirer";
import type { Provider } from "zksync-web3";
import type { Provider } from "zksync-ethers";

export type ABI = Record<string, unknown>[];
export type ContractInfo = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/contract/utils/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isAddress } from "ethers/lib/utils.js";

import { ETH_TOKEN } from "../../../utils/constants.js";

import type { Provider } from "zksync-web3";
import type { Provider } from "zksync-ethers";

const PROXY_CONTRACT_IMPLEMENTATION_ABI = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getAddress } from "ethers/lib/utils.js";
import { L2_ETH_TOKEN_ADDRESS } from "zksync-web3/build/src/utils.js";
import { L2_ETH_TOKEN_ADDRESS } from "zksync-ethers/build/src/utils.js";

export const ETH_TOKEN = {
symbol: "ETH",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chalk from "chalk";
import { spawn } from "child_process";
import { ethers } from "ethers";
import { computeAddress } from "ethers/lib/utils.js";
import { Wallet, Provider } from "zksync-web3";
import { Wallet, Provider } from "zksync-ethers";

import { Logger } from "../lib/index.js";

Expand Down
4 changes: 2 additions & 2 deletions src/utils/token.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { BigNumber } from "ethers";
import { getAddress } from "ethers/lib/utils.js";
import { utils } from "zksync-web3";
import { utils } from "zksync-ethers";

import { ETH_TOKEN } from "./constants.js";

import type { BigNumberish, ethers } from "ethers";
import type { Provider } from "zksync-web3";
import type { Provider } from "zksync-ethers";

type Token = {
address: string;
Expand Down

0 comments on commit 4708936

Please sign in to comment.