@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.
@@ -1,4 +1,4 @@
1
- export { createEthersSdk } from '../../chunk-5H3VTIYD.js';
1
+ export { createEthersSdk } from '../../chunk-E2XKJCI5.js';
2
2
  import '../../chunk-NJK325XV.js';
3
3
  import '../../chunk-6LYAENO6.js';
4
4
  import '../../chunk-3HHUZXSV.js';
@@ -1728,7 +1728,7 @@ function routeErc20NonBase2() {
1728
1728
  async build(p, ctx) {
1729
1729
  const steps = [];
1730
1730
  const approvals = [];
1731
- const erc20 = new Contract(p.token, IERC20_default, ctx.client.getL2Signer());
1731
+ const erc20 = new Contract(p.token, IERC20_default, ctx.client.l2);
1732
1732
  const current = await wrapAs7(
1733
1733
  "CONTRACT",
1734
1734
  OP_WITHDRAWALS.erc20.allowance,
@@ -2522,7 +2522,7 @@ async function buildApproveSteps(approvals, ctx) {
2522
2522
  async function resolveErc20AssetIds(erc20Tokens, ctx) {
2523
2523
  const assetIds = /* @__PURE__ */ new Map();
2524
2524
  if (erc20Tokens.length === 0) return assetIds;
2525
- const ntv = new Contract(ctx.l2NativeTokenVault, L2NativeTokenVault_default, ctx.client.getL2Signer());
2525
+ const ntv = new Contract(ctx.l2NativeTokenVault, L2NativeTokenVault_default, ctx.client.l2);
2526
2526
  for (const token of erc20Tokens) {
2527
2527
  const assetId = await ntv.getFunction("ensureTokenIsRegistered").staticCall(token);
2528
2528
  assetIds.set(token.toLowerCase(), assetId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterlabs/zksync-js",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "devDependencies": {