Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-v3-logs-fallback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@across-protocol/app-sdk": patch
---

Fix getDeposit and getFillByDepositTx discarding V3.5 logs when the V3 query returns an empty array
2 changes: 1 addition & 1 deletion packages/sdk/src/actions/getDeposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,5 @@ async function getDepositLogs({
}),
]);

return v3Logs ?? v3_5Logs;
return v3Logs.length > 0 ? v3Logs : v3_5Logs;
}
2 changes: 1 addition & 1 deletion packages/sdk/src/actions/getFillByDepositTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,5 @@ export async function getFillLogs(params: GetFillByDepositTxParams) {
}),
]);

return v3Logs ?? v3_5Logs;
return v3Logs.length > 0 ? v3Logs : v3_5Logs;
}