@zubari/sdk 0.1.8 → 0.1.9
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 +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +18 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +18 -0
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3050,6 +3050,12 @@ function useWalletManager(options = {}) {
|
|
|
3050
3050
|
manager.deriveAllAddresses();
|
|
3051
3051
|
}
|
|
3052
3052
|
updateState();
|
|
3053
|
+
try {
|
|
3054
|
+
const balances = await manager.fetchAllBalances();
|
|
3055
|
+
setChainBalances(balances);
|
|
3056
|
+
} catch (err) {
|
|
3057
|
+
console.warn("Failed to fetch balances after create:", err);
|
|
3058
|
+
}
|
|
3053
3059
|
return result;
|
|
3054
3060
|
} catch (err) {
|
|
3055
3061
|
const message = err instanceof Error ? err.message : "Failed to create wallet";
|
|
@@ -3074,6 +3080,12 @@ function useWalletManager(options = {}) {
|
|
|
3074
3080
|
manager.deriveAllAddresses();
|
|
3075
3081
|
}
|
|
3076
3082
|
updateState();
|
|
3083
|
+
try {
|
|
3084
|
+
const balances = await manager.fetchAllBalances();
|
|
3085
|
+
setChainBalances(balances);
|
|
3086
|
+
} catch (err) {
|
|
3087
|
+
console.warn("Failed to fetch balances after import:", err);
|
|
3088
|
+
}
|
|
3077
3089
|
} catch (err) {
|
|
3078
3090
|
const message = err instanceof Error ? err.message : "Failed to import wallet";
|
|
3079
3091
|
setError(message);
|
|
@@ -3097,6 +3109,12 @@ function useWalletManager(options = {}) {
|
|
|
3097
3109
|
manager.deriveAllAddresses();
|
|
3098
3110
|
}
|
|
3099
3111
|
updateState();
|
|
3112
|
+
try {
|
|
3113
|
+
const balances = await manager.fetchAllBalances();
|
|
3114
|
+
setChainBalances(balances);
|
|
3115
|
+
} catch (err) {
|
|
3116
|
+
console.warn("Failed to fetch balances after unlock:", err);
|
|
3117
|
+
}
|
|
3100
3118
|
} catch (err) {
|
|
3101
3119
|
const message = err instanceof Error ? err.message : "Invalid password";
|
|
3102
3120
|
setError(message);
|