@dynamic-labs/sdk-react-core 4.11.1 → 4.11.2

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.
@@ -14,7 +14,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
14
14
  const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
15
15
  const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
16
16
  const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
17
- var _b, _c, _d, _e, _f;
17
+ var _b, _c;
18
18
  const smartWallet = findWalletOptionFor.findWalletOptionFor(account, walletConnectorOptions);
19
19
  if (!smartWallet) {
20
20
  throw new Error('could not find smart wallet from wallet options');
@@ -45,12 +45,10 @@ const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fun
45
45
  ownerWallet.walletConnector.setVerifiedCredentials(sortedVcs);
46
46
  }
47
47
  }
48
- yield connector.registerEoa({
49
- ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
50
- entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
48
+ yield connector.initialize({
51
49
  eoaAddress: owner.address,
52
50
  eoaConnector: ownerWallet === null || ownerWallet === void 0 ? void 0 : ownerWallet.walletConnector,
53
- kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
51
+ properties: account.walletProperties,
54
52
  shouldSetEoaConnector: primaryWalletId === owner.id || primaryWalletId === account.id,
55
53
  smartWalletAddress: account.address,
56
54
  });
@@ -10,7 +10,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
10
10
  const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
11
11
  const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
12
12
  const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
13
- var _b, _c, _d, _e, _f;
13
+ var _b, _c;
14
14
  const smartWallet = findWalletOptionFor(account, walletConnectorOptions);
15
15
  if (!smartWallet) {
16
16
  throw new Error('could not find smart wallet from wallet options');
@@ -41,12 +41,10 @@ const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function*
41
41
  ownerWallet.walletConnector.setVerifiedCredentials(sortedVcs);
42
42
  }
43
43
  }
44
- yield connector.registerEoa({
45
- ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
46
- entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
44
+ yield connector.initialize({
47
45
  eoaAddress: owner.address,
48
46
  eoaConnector: ownerWallet === null || ownerWallet === void 0 ? void 0 : ownerWallet.walletConnector,
49
- kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
47
+ properties: account.walletProperties,
50
48
  shouldSetEoaConnector: primaryWalletId === owner.id || primaryWalletId === account.id,
51
49
  smartWalletAddress: account.address,
52
50
  });