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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodpay",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "description": "NodPay CLI — propose on-chain payments from agent-human shared wallets",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 isL1SafeSingleton=false so the SDK picks L2 singleton.
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();