diff --git a/package-lock.json b/package-lock.json
index d4cbc7e..8a92c54 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,7 +12,7 @@
"@noble/hashes": "^1.7.2",
"@scure/base": "^1.2.4",
"@tanstack/react-query": "^5.90.0",
- "@unicitylabs/sphere-sdk": "^0.5.4",
+ "@unicitylabs/sphere-sdk": "^0.5.6",
"lucide-react": "^0.552.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
@@ -68,7 +68,6 @@
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@babel/code-frame": "^7.29.0",
"@babel/generator": "^7.29.0",
@@ -2358,7 +2357,6 @@
"integrity": "sha512-RpV6r/ij22zRRdyBPcxDeKAzH43phWVKEjL2iksqo1Vz3CuBUrgmPpPhALKiRfU7OMCmeeO9vECBMsV0hMTG8Q==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"undici-types": "~7.18.0"
}
@@ -2376,7 +2374,6 @@
"integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@types/prop-types": "*",
"csstype": "^3.2.2"
@@ -2437,7 +2434,6 @@
"integrity": "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@typescript-eslint/scope-manager": "8.56.1",
"@typescript-eslint/types": "8.56.1",
@@ -2705,9 +2701,9 @@
}
},
"node_modules/@unicitylabs/sphere-sdk": {
- "version": "0.5.4",
- "resolved": "https://registry.npmjs.org/@unicitylabs/sphere-sdk/-/sphere-sdk-0.5.4.tgz",
- "integrity": "sha512-MdkVAEdU9lWD8WGLerwaMxZZJBv1/BQpwd8cnhowRUY4IRCC6EZVIYJP8soshyWPLUQ1f0E0KFfez9arQc88Sg==",
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/@unicitylabs/sphere-sdk/-/sphere-sdk-0.5.6.tgz",
+ "integrity": "sha512-CmOz3cDxamE25E/W8MRNV8h2cY/Bmn7zmyHpeGZWqQSPL0AYxCeyYUCdnhiTD4082wId0UCXNBiJyQoPRAxS+w==",
"license": "MIT",
"dependencies": {
"@noble/curves": "^2.0.1",
@@ -2858,7 +2854,6 @@
"integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
"dev": true,
"license": "MIT",
- "peer": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -3273,7 +3268,6 @@
}
],
"license": "MIT",
- "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.9.0",
"caniuse-lite": "^1.0.30001759",
@@ -3964,7 +3958,6 @@
"integrity": "sha512-VmQ+sifHUbI/IcSopBCF/HO3YiHQx/AVd3UVyYL6weuwW+HvON9VYn5l6Zl1WZzPWXPNZrSQpxwkkZ/VuvJZzg==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.8.0",
"@eslint-community/regexpp": "^4.12.1",
@@ -5069,9 +5062,9 @@
}
},
"node_modules/libphonenumber-js": {
- "version": "1.12.36",
- "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.36.tgz",
- "integrity": "sha512-woWhKMAVx1fzzUnMCyOzglgSgf6/AFHLASdOBcchYCyvWSGWt12imw3iu2hdI5d4dGZRsNWAmWiz37sDKUPaRQ==",
+ "version": "1.12.38",
+ "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.38.tgz",
+ "integrity": "sha512-vwzxmasAy9hZigxtqTbFEwp8ZdZ975TiqVDwj5bKx5sR+zi5ucUQy9mbVTkKM9GzqdLdxux/hTw2nmN5J7POMA==",
"license": "MIT"
},
"node_modules/locate-path": {
@@ -5624,7 +5617,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=12"
},
@@ -5822,7 +5814,6 @@
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
"integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"loose-envify": "^1.1.0"
},
@@ -6681,7 +6672,6 @@
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
- "peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -6864,7 +6854,6 @@
"integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.4.4",
diff --git a/package.json b/package.json
index e3d1549..7404897 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"@noble/hashes": "^1.7.2",
"@scure/base": "^1.2.4",
"@tanstack/react-query": "^5.90.0",
- "@unicitylabs/sphere-sdk": "^0.5.4",
+ "@unicitylabs/sphere-sdk": "^0.5.6",
"lucide-react": "^0.552.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
diff --git a/src/components/ui/BaseModal.tsx b/src/components/ui/BaseModal.tsx
index 1e9129b..175b392 100644
--- a/src/components/ui/BaseModal.tsx
+++ b/src/components/ui/BaseModal.tsx
@@ -61,7 +61,7 @@ export function BaseModal({
e.stopPropagation()}
- className={`relative w-full ${sizeClasses[size]} max-h-[70dvh] sm:max-h-[600px] bg-white dark:bg-[#111] border border-neutral-200 dark:border-white/10 rounded-3xl shadow-2xl pointer-events-auto flex flex-col overflow-hidden opacity-0 scale-95 translate-y-4 transition-all duration-300 ease-out ${className}`}
+ className={`relative w-full ${sizeClasses[size]} max-h-[70dvh] sm:max-h-150 bg-white dark:bg-[#111] border border-neutral-200 dark:border-white/10 rounded-3xl shadow-2xl pointer-events-auto flex flex-col overflow-hidden opacity-0 scale-95 translate-y-4 transition-all duration-300 ease-out ${className}`}
>
{/* Background Orbs */}
{showOrbs && (
diff --git a/src/components/wallet/UnlockWallet.tsx b/src/components/wallet/UnlockWallet.tsx
index b14fcd1..bbe20c9 100644
--- a/src/components/wallet/UnlockWallet.tsx
+++ b/src/components/wallet/UnlockWallet.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react';
import { Loader2, Lock, AlertCircle } from 'lucide-react';
+import { getErrorMessage } from '@/sdk/errors';
interface UnlockWalletProps {
onUnlock: (password: string) => Promise
;
@@ -20,7 +21,7 @@ export function UnlockWallet({ onUnlock }: UnlockWalletProps) {
try {
await onUnlock(password);
} catch (err) {
- setError((err as Error).message || 'Failed to unlock wallet');
+ setError(getErrorMessage(err));
} finally {
setIsLoading(false);
}
@@ -36,7 +37,7 @@ export function UnlockWallet({ onUnlock }: UnlockWalletProps) {
{/* Lock Icon */}
-
@@ -78,7 +79,7 @@ export function UnlockWallet({ onUnlock }: UnlockWalletProps) {