@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/react/index.mjs
CHANGED
|
@@ -1785,6 +1785,12 @@ function useWalletManager(options = {}) {
|
|
|
1785
1785
|
manager.deriveAllAddresses();
|
|
1786
1786
|
}
|
|
1787
1787
|
updateState();
|
|
1788
|
+
try {
|
|
1789
|
+
const balances = await manager.fetchAllBalances();
|
|
1790
|
+
setChainBalances(balances);
|
|
1791
|
+
} catch (err) {
|
|
1792
|
+
console.warn("Failed to fetch balances after create:", err);
|
|
1793
|
+
}
|
|
1788
1794
|
return result;
|
|
1789
1795
|
} catch (err) {
|
|
1790
1796
|
const message = err instanceof Error ? err.message : "Failed to create wallet";
|
|
@@ -1809,6 +1815,12 @@ function useWalletManager(options = {}) {
|
|
|
1809
1815
|
manager.deriveAllAddresses();
|
|
1810
1816
|
}
|
|
1811
1817
|
updateState();
|
|
1818
|
+
try {
|
|
1819
|
+
const balances = await manager.fetchAllBalances();
|
|
1820
|
+
setChainBalances(balances);
|
|
1821
|
+
} catch (err) {
|
|
1822
|
+
console.warn("Failed to fetch balances after import:", err);
|
|
1823
|
+
}
|
|
1812
1824
|
} catch (err) {
|
|
1813
1825
|
const message = err instanceof Error ? err.message : "Failed to import wallet";
|
|
1814
1826
|
setError(message);
|
|
@@ -1832,6 +1844,12 @@ function useWalletManager(options = {}) {
|
|
|
1832
1844
|
manager.deriveAllAddresses();
|
|
1833
1845
|
}
|
|
1834
1846
|
updateState();
|
|
1847
|
+
try {
|
|
1848
|
+
const balances = await manager.fetchAllBalances();
|
|
1849
|
+
setChainBalances(balances);
|
|
1850
|
+
} catch (err) {
|
|
1851
|
+
console.warn("Failed to fetch balances after unlock:", err);
|
|
1852
|
+
}
|
|
1835
1853
|
} catch (err) {
|
|
1836
1854
|
const message = err instanceof Error ? err.message : "Invalid password";
|
|
1837
1855
|
setError(message);
|