@matterlabs/zksync-js 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9921,7 +9921,7 @@ function routeErc20NonBase2() {
9921
9921
  async build(p, ctx) {
9922
9922
  const steps = [];
9923
9923
  const approvals = [];
9924
- const erc20 = new ethers.Contract(p.token, IERC20_default, ctx.client.getL2Signer());
9924
+ const erc20 = new ethers.Contract(p.token, IERC20_default, ctx.client.l2);
9925
9925
  const current = await wrapAs8(
9926
9926
  "CONTRACT",
9927
9927
  OP_WITHDRAWALS.erc20.allowance,
@@ -10966,7 +10966,7 @@ async function buildApproveSteps(approvals, ctx) {
10966
10966
  async function resolveErc20AssetIds(erc20Tokens, ctx) {
10967
10967
  const assetIds = /* @__PURE__ */ new Map();
10968
10968
  if (erc20Tokens.length === 0) return assetIds;
10969
- const ntv = new ethers.Contract(ctx.l2NativeTokenVault, L2NativeTokenVault_default, ctx.client.getL2Signer());
10969
+ const ntv = new ethers.Contract(ctx.l2NativeTokenVault, L2NativeTokenVault_default, ctx.client.l2);
10970
10970
  for (const token of erc20Tokens) {
10971
10971
  const assetId = await ntv.getFunction("ensureTokenIsRegistered").staticCall(token);
10972
10972
  assetIds.set(token.toLowerCase(), assetId);