@turtleclub/hooks 0.5.0-beta.65 → 0.5.0-beta.66
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/balance/utils.ts +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3517,9 +3517,9 @@ function mergeBalancesByPriority(sources, receiptToken) {
|
|
|
3517
3517
|
const balanceMap = /* @__PURE__ */ new Map();
|
|
3518
3518
|
sources.forEach((sourceBalances) => {
|
|
3519
3519
|
sourceBalances.forEach((balance) => {
|
|
3520
|
-
const key = `${balance.token.chain}-${balance.token.address.toLowerCase()}`;
|
|
3520
|
+
const key = `${balance.token.chain.chainId}-${balance.token.address.toLowerCase()}`;
|
|
3521
3521
|
if (receiptToken) {
|
|
3522
|
-
const receiptKey = `${receiptToken.chain}-${receiptToken.address.toLowerCase()}`;
|
|
3522
|
+
const receiptKey = `${receiptToken.chain.chainId}-${receiptToken.address.toLowerCase()}`;
|
|
3523
3523
|
if (key === receiptKey) {
|
|
3524
3524
|
return;
|
|
3525
3525
|
}
|