@dynamic-labs/ethereum-aa 4.12.2 → 4.12.3

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.
@@ -184,7 +184,15 @@ class ZeroDevConnector extends AccountAbstractionConnector.AccountAbstractionCon
184
184
  }, {});
185
185
  utils.StorageService.setItem(ZERODEV_AUTHORIZATION, serializedAuth);
186
186
  }
187
- return authorization;
187
+ return {
188
+ address: authorization.contractAddress,
189
+ chainId: authorization.chainId,
190
+ nonce: authorization.nonce,
191
+ r: authorization.r,
192
+ s: authorization.s,
193
+ v: authorization.v,
194
+ yParity: authorization.yParity,
195
+ };
188
196
  }
189
197
  catch (error) {
190
198
  logger.logger.error('Failed to get/set authorization:', error);
@@ -180,7 +180,15 @@ class ZeroDevConnector extends AccountAbstractionConnector {
180
180
  }, {});
181
181
  StorageService.setItem(ZERODEV_AUTHORIZATION, serializedAuth);
182
182
  }
183
- return authorization;
183
+ return {
184
+ address: authorization.contractAddress,
185
+ chainId: authorization.chainId,
186
+ nonce: authorization.nonce,
187
+ r: authorization.r,
188
+ s: authorization.s,
189
+ v: authorization.v,
190
+ yParity: authorization.yParity,
191
+ };
184
192
  }
185
193
  catch (error) {
186
194
  logger.error('Failed to get/set authorization:', error);