@dynamic-labs/ethereum-aa 4.0.0-alpha.41 → 4.0.0-alpha.43

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.
@@ -290,7 +290,7 @@ class ZeroDevConnector extends WalletConnectorBase {
290
290
  onPersonalSign: (_a) => __awaiter(this, [_a], void 0, function* ({ message }) {
291
291
  this._walletUiUtils.disabledConfirmationOnce();
292
292
  return provider.signMessage({
293
- account: provider.account,
293
+ account: toAccount(provider.account.address),
294
294
  message,
295
295
  });
296
296
  }),
@@ -321,7 +321,7 @@ class ZeroDevConnector extends WalletConnectorBase {
321
321
  this._walletUiUtils.disabledConfirmationOnce();
322
322
  const signTypedData = JSON.parse(message);
323
323
  return provider.signTypedData({
324
- account: provider.account,
324
+ account: toAccount(provider.account.address),
325
325
  domain: signTypedData.domain,
326
326
  message: signTypedData.message,
327
327
  primaryType: signTypedData.primaryType,
@@ -337,14 +337,12 @@ class ZeroDevConnector extends WalletConnectorBase {
337
337
  return transport;
338
338
  }
339
339
  getWalletClient(chainId) {
340
- var _a;
341
340
  const provider = this.kernelClient;
342
341
  if (!provider)
343
342
  return undefined;
344
343
  const transport = this.getTransport(provider);
345
- const address = (_a = provider.account) === null || _a === void 0 ? void 0 : _a.address;
346
344
  const walletClient = createWalletClient({
347
- account: address,
345
+ account: toAccount(provider.account.address),
348
346
  chain: chainId ? chainsMap[chainId] : provider.chain,
349
347
  transport,
350
348
  });
@@ -27,6 +27,7 @@ const createEcdsaKernelAccountClient = (_a) => _tslib.__awaiter(void 0, [_a], vo
27
27
  const resolvedBundlerRpc = bundlerRpc !== null && bundlerRpc !== void 0 ? bundlerRpc : getZeroDevBundlerRPC(projectId, provider);
28
28
  const resolvedPaymasterRpc = paymasterRpc !== null && paymasterRpc !== void 0 ? paymasterRpc : getZeroDevPaymasterRPC(projectId, provider);
29
29
  const publicClient = viem.createPublicClient({
30
+ chain,
30
31
  transport: viem.http(resolvedBundlerRpc),
31
32
  });
32
33
  const validator = yield ecdsaValidator(publicClient, {
@@ -2,7 +2,7 @@ import { KernelSmartAccount } from '@zerodev/sdk/accounts';
2
2
  import { KernelAccountClient } from '@zerodev/sdk/clients';
3
3
  import { SmartAccountSigner } from 'permissionless/accounts';
4
4
  import { EntryPoint } from 'permissionless/types';
5
- import { Address, HttpTransport, Chain } from 'viem';
5
+ import { Address, Transport, Chain } from 'viem';
6
6
  import { GetKernelVersion } from '@zerodev/sdk/types';
7
7
  export type BundlerProvider = 'STACKUP' | 'PIMLICO' | 'ALCHEMY' | 'GELATO';
8
8
  export type ERC20Paymaster = Address;
@@ -21,4 +21,4 @@ export declare const createEcdsaKernelAccountClient: <entryPoint extends EntryPo
21
21
  index?: bigint;
22
22
  kernelVersion: GetKernelVersion<entryPoint>;
23
23
  ecdsaValidator: any;
24
- }) => Promise<KernelAccountClient<entryPoint, HttpTransport, TChain, KernelSmartAccount<entryPoint>>>;
24
+ }) => Promise<KernelAccountClient<entryPoint, Transport, TChain, KernelSmartAccount<entryPoint, Transport, TChain>>>;
@@ -23,6 +23,7 @@ const createEcdsaKernelAccountClient = (_a) => __awaiter(void 0, [_a], void 0, f
23
23
  const resolvedBundlerRpc = bundlerRpc !== null && bundlerRpc !== void 0 ? bundlerRpc : getZeroDevBundlerRPC(projectId, provider);
24
24
  const resolvedPaymasterRpc = paymasterRpc !== null && paymasterRpc !== void 0 ? paymasterRpc : getZeroDevPaymasterRPC(projectId, provider);
25
25
  const publicClient = createPublicClient({
26
+ chain,
26
27
  transport: http(resolvedBundlerRpc),
27
28
  });
28
29
  const validator = yield ecdsaValidator(publicClient, {