@vechain/vechain-kit 1.5.3 → 1.5.5
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.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3627,8 +3627,8 @@ var useBalances = ({ address = "" }) => {
|
|
|
3627
3627
|
{ address: contractAddresses.vtho, price: vthoUsdPrice || 0 },
|
|
3628
3628
|
{ address: contractAddresses.b3tr, price: b3trUsdPrice || 0 }
|
|
3629
3629
|
];
|
|
3630
|
-
const totalBalance = balances.reduce((acc, {
|
|
3631
|
-
const price = prices.find((p) => p.address ===
|
|
3630
|
+
const totalBalance = balances.reduce((acc, { priceAddress, value }) => {
|
|
3631
|
+
const price = prices.find((p) => p.address === priceAddress)?.price || 0;
|
|
3632
3632
|
return acc + Number(value) * price;
|
|
3633
3633
|
}, 0);
|
|
3634
3634
|
const tokens = balances.reduce(
|
|
@@ -4983,7 +4983,7 @@ var AddressDisplay = ({
|
|
|
4983
4983
|
// package.json
|
|
4984
4984
|
var package_default = {
|
|
4985
4985
|
name: "@vechain/vechain-kit",
|
|
4986
|
-
version: "1.5.
|
|
4986
|
+
version: "1.5.5",
|
|
4987
4987
|
private: false,
|
|
4988
4988
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4989
4989
|
repository: "github:vechain/vechain-kit",
|
|
@@ -17750,8 +17750,7 @@ var VeChainKitProvider = (props) => {
|
|
|
17750
17750
|
logo: privy?.appearance.logo
|
|
17751
17751
|
},
|
|
17752
17752
|
embeddedWallets: {
|
|
17753
|
-
createOnLogin: privy?.embeddedWallets?.createOnLogin ?? "all-users"
|
|
17754
|
-
showWalletUIs: true
|
|
17753
|
+
createOnLogin: privy?.embeddedWallets?.createOnLogin ?? "all-users"
|
|
17755
17754
|
},
|
|
17756
17755
|
passkeys: {
|
|
17757
17756
|
shouldUnlinkOnUnenrollMfa: false
|