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