nodpay 0.2.33 → 0.2.34
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/package.json +1 -1
- package/scripts/propose.mjs +3 -1
package/package.json
CHANGED
package/scripts/propose.mjs
CHANGED
|
@@ -332,14 +332,16 @@ try {
|
|
|
332
332
|
safeAddress.toLowerCase() !== SAFE_ADDRESS.toLowerCase()
|
|
333
333
|
) {
|
|
334
334
|
const Safe = (await import('@safe-global/protocol-kit')).default;
|
|
335
|
+
const L2_SINGLETON = '0x29fcB43b46531BcA003ddC8FCB67FFE91900C762';
|
|
335
336
|
// getPredictedSafe() returns the full config Safe4337Pack assembled — owners, threshold,
|
|
336
337
|
// module setup (to/data), fallbackHandler, salt, etc. We re-init with the same config
|
|
337
|
-
// but
|
|
338
|
+
// but force L2 singleton via contractNetworks (SDK public API).
|
|
338
339
|
const predictedSafe = safe4337Pack.protocolKit.getPredictedSafe();
|
|
339
340
|
safe4337Pack.protocolKit = await Safe.init({
|
|
340
341
|
provider: RPC_URL,
|
|
341
342
|
signer: initOptions.signer,
|
|
342
343
|
isL1SafeSingleton: false,
|
|
344
|
+
contractNetworks: { [CHAIN_ID]: { safeSingletonAddress: L2_SINGLETON } },
|
|
343
345
|
predictedSafe,
|
|
344
346
|
});
|
|
345
347
|
safeAddress = await safe4337Pack.protocolKit.getAddress();
|