@hfunlabs/hypurr-connect 0.1.15 → 0.1.16
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/dist/index.js
CHANGED
|
@@ -3428,7 +3428,7 @@ function DeleteWalletModal({
|
|
|
3428
3428
|
const [error, setError] = useState5(null);
|
|
3429
3429
|
const [deleteHovered, setDeleteHovered] = useState5(false);
|
|
3430
3430
|
const walletName = wallet?.name || "Unnamed Wallet";
|
|
3431
|
-
const displayAddress = wallet?.
|
|
3431
|
+
const displayAddress = wallet?.ethereumAddress;
|
|
3432
3432
|
const isNameMatch = confirmName === walletName;
|
|
3433
3433
|
const canDelete = isNameMatch && !isDeleting;
|
|
3434
3434
|
const handleClose = useCallback6(() => {
|
|
@@ -3743,7 +3743,7 @@ function RenameWalletModal({
|
|
|
3743
3743
|
const [error, setError] = useState6(null);
|
|
3744
3744
|
const [saveHovered, setSaveHovered] = useState6(false);
|
|
3745
3745
|
const currentName = wallet?.name || "Unnamed";
|
|
3746
|
-
const displayAddress = wallet?.
|
|
3746
|
+
const displayAddress = wallet?.ethereumAddress;
|
|
3747
3747
|
const trimmedName = name.trim();
|
|
3748
3748
|
const isNameChanged = trimmedName !== currentName;
|
|
3749
3749
|
const isNameValid = WALLET_NAME_REGEX2.test(trimmedName);
|
|
@@ -4753,7 +4753,6 @@ function WalletRow({
|
|
|
4753
4753
|
const [hovered, setHovered] = useState7(false);
|
|
4754
4754
|
const agentExpiryTitle = getAgentExpiryTitle(wallet);
|
|
4755
4755
|
const isAgentExpired = !!agentExpiryTitle;
|
|
4756
|
-
const displayAddress = wallet.isAgent && wallet.agentEthereumAddress?.value ? wallet.agentEthereumAddress.value : wallet.ethereumAddress;
|
|
4757
4756
|
const typeMeta = getWalletTypeMeta(wallet);
|
|
4758
4757
|
return /* @__PURE__ */ jsxs10(
|
|
4759
4758
|
"div",
|
|
@@ -4860,9 +4859,9 @@ function WalletRow({
|
|
|
4860
4859
|
fontFamily: fontFamily.mono
|
|
4861
4860
|
},
|
|
4862
4861
|
children: [
|
|
4863
|
-
|
|
4862
|
+
wallet.ethereumAddress?.slice(0, 6),
|
|
4864
4863
|
"...",
|
|
4865
|
-
|
|
4864
|
+
wallet.ethereumAddress?.slice(-4)
|
|
4866
4865
|
]
|
|
4867
4866
|
}
|
|
4868
4867
|
)
|
|
@@ -5042,7 +5041,6 @@ var formatCompactAddress = (addr) => {
|
|
|
5042
5041
|
if (!addr) return "";
|
|
5043
5042
|
return `${addr.slice(0, 4)}...${addr.slice(-2)}`;
|
|
5044
5043
|
};
|
|
5045
|
-
var getDisplayAddress = (wallet) => wallet.isAgent && wallet.agentEthereumAddress?.value ? wallet.agentEthereumAddress.value : wallet.ethereumAddress;
|
|
5046
5044
|
function getWalletTypeMeta2(wallet) {
|
|
5047
5045
|
if (wallet.isAgent) {
|
|
5048
5046
|
return {
|
|
@@ -5153,8 +5151,7 @@ function WalletSelectorDropdown({
|
|
|
5153
5151
|
const renderWalletRow = (item, depth) => {
|
|
5154
5152
|
const { wallet, label } = item;
|
|
5155
5153
|
const isSelected = wallet.id === selectedWalletId;
|
|
5156
|
-
const
|
|
5157
|
-
const compactAddress = formatCompactAddress(displayAddress);
|
|
5154
|
+
const compactAddress = formatCompactAddress(wallet.ethereumAddress);
|
|
5158
5155
|
const agentExpiryTitle = getAgentExpiryTitle({
|
|
5159
5156
|
isAgent: !!wallet.isAgent,
|
|
5160
5157
|
agentExpiresAt: wallet.agentExpiresAt
|
|
@@ -5175,7 +5172,7 @@ function WalletSelectorDropdown({
|
|
|
5175
5172
|
onShowPortfolio(wallet);
|
|
5176
5173
|
onClose();
|
|
5177
5174
|
} : void 0,
|
|
5178
|
-
onCopy: () => handleCopyAddress(
|
|
5175
|
+
onCopy: () => handleCopyAddress(wallet.ethereumAddress),
|
|
5179
5176
|
agentExpiryTitle,
|
|
5180
5177
|
onRenewAgentWallet: wallet.isAgent && onRenewAgentWallet ? () => {
|
|
5181
5178
|
onRenewAgentWallet(wallet);
|