@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.
- package/dist/adapters/ethers/index.cjs +2 -2
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +1 -1
- package/dist/adapters/ethers/sdk.cjs +2 -2
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +1 -1
- package/dist/{chunk-5H3VTIYD.js → chunk-E2XKJCI5.js} +2 -2
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
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);
|