@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.js
CHANGED
|
@@ -3622,8 +3622,8 @@ var useBalances = ({ address = "" }) => {
|
|
|
3622
3622
|
{ address: contractAddresses.vtho, price: vthoUsdPrice || 0 },
|
|
3623
3623
|
{ address: contractAddresses.b3tr, price: b3trUsdPrice || 0 }
|
|
3624
3624
|
];
|
|
3625
|
-
const totalBalance = balances.reduce((acc, {
|
|
3626
|
-
const price = prices.find((p) => p.address ===
|
|
3625
|
+
const totalBalance = balances.reduce((acc, { priceAddress, value }) => {
|
|
3626
|
+
const price = prices.find((p) => p.address === priceAddress)?.price || 0;
|
|
3627
3627
|
return acc + Number(value) * price;
|
|
3628
3628
|
}, 0);
|
|
3629
3629
|
const tokens = balances.reduce(
|
|
@@ -4978,7 +4978,7 @@ var AddressDisplay = ({
|
|
|
4978
4978
|
// package.json
|
|
4979
4979
|
var package_default = {
|
|
4980
4980
|
name: "@vechain/vechain-kit",
|
|
4981
|
-
version: "1.5.
|
|
4981
|
+
version: "1.5.5",
|
|
4982
4982
|
private: false,
|
|
4983
4983
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
4984
4984
|
repository: "github:vechain/vechain-kit",
|
|
@@ -17745,8 +17745,7 @@ var VeChainKitProvider = (props) => {
|
|
|
17745
17745
|
logo: privy?.appearance.logo
|
|
17746
17746
|
},
|
|
17747
17747
|
embeddedWallets: {
|
|
17748
|
-
createOnLogin: privy?.embeddedWallets?.createOnLogin ?? "all-users"
|
|
17749
|
-
showWalletUIs: true
|
|
17748
|
+
createOnLogin: privy?.embeddedWallets?.createOnLogin ?? "all-users"
|
|
17750
17749
|
},
|
|
17751
17750
|
passkeys: {
|
|
17752
17751
|
shouldUnlinkOnUnenrollMfa: false
|