Skip to content

Commit a77e98a

Browse files
authored
[SDK] Fix: Deprecate bridge routes sortBy (#7825)
1 parent fde39eb commit a77e98a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/shaky-candles-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Deprecates `sortBy` parameter in Bridge.routes

packages/thirdweb/src/bridge/Routes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ export declare namespace routes {
203203
destinationTokenAddress?: ox__Address.Address;
204204
/** Transaction hash to filter routes by */
205205
transactionHash?: ox__Hex.Hex;
206-
/** Sort routes by popularity */
206+
/**
207+
* Sort routes by popularity
208+
* @deprecated
209+
*/
207210
sortBy?: "popularity";
208211
/** Maximum number of steps in the route */
209212
maxSteps?: number;

0 commit comments

Comments
 (0)