@skip-go/widget 2.3.1-alpha.0 → 2.3.1-alpha.1

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/build/index.es.js CHANGED
@@ -4017,7 +4017,7 @@ const SetAddressDialog = ({ open, onOpen, chain, index, signRequired, isDestinat
4017
4017
  wallets.map((wallet) => {
4018
4018
  // currently only svm chainType that have isAvailable
4019
4019
  return (jsxs(WalletListItem, { chainType: chainType, walletName: wallet.walletName, className: cn('group relative mb-2 data-[unsupported=true]:opacity-30', 'data-[unsupported=true]:before:absolute data-[unsupported=true]:before:inset-0 data-[unsupported=true]:before:cursor-not-allowed'), children: [jsxs(StyledThemedButton, { className: cn('flex w-full items-center gap-2 rounded-lg p-2 transition-colors focus:-outline-offset-2'), onClick: async () => {
4020
- var _a;
4020
+ var _a, _b;
4021
4021
  const resAddress = await ((_a = wallet.getAddress) === null || _a === void 0 ? void 0 : _a.call(wallet, {
4022
4022
  signRequired,
4023
4023
  context: isDestination ? 'destination' : 'recovery',
@@ -4025,7 +4025,8 @@ const SetAddressDialog = ({ open, onOpen, chain, index, signRequired, isDestinat
4025
4025
  index: wallet.walletName === 'prax'
4026
4026
  ? praxWalletIndex
4027
4027
  : undefined,
4028
- sourceChainID: chainID,
4028
+ // chain id of the previous chain
4029
+ sourceChainID: (_b = chainAddresses[index - 1]) === null || _b === void 0 ? void 0 : _b.chainID,
4029
4030
  },
4030
4031
  }));
4031
4032
  if (resAddress) {