Skip to content

Commit 80ec342

Browse files
authored
Merge pull request #183 from aave/fix/cache-test-usdc-supply
fix: compare txn hash / chain in cache test
2 parents 03c4441 + 79bef0a commit 80ec342

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.changeset/mighty-peaches-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aave/client": patch
3+
---
4+
5+
**fix:** remove client-side sorting for activities to preserve backend ordering.

packages/client/src/cache.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
type Hub,
88
type HubAsset,
99
type HubQuery,
10-
type ID,
1110
isHubInputVariant,
1211
isTxHashInputVariant,
1312
type LiquidatedActivity,
@@ -234,11 +233,6 @@ export const exchange = cacheExchange({
234233
}
235234
}
236235
return true;
237-
})
238-
.sort((a, b) => {
239-
const ida = cache.resolve(a, 'id') as ID;
240-
const idb = cache.resolve(b, 'id') as ID;
241-
return idb <= ida ? 1 : -1;
242236
});
243237

244238
if (matches.length === 0) return undefined;

0 commit comments

Comments
 (0)