Skip to content

Commit

Permalink
fix: add error data from simulate response (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
quangdz1704 authored Nov 6, 2024
1 parent 36ef01b commit cf3d45a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/universal-swap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-universal-swap",
"version": "1.1.16",
"version": "1.1.17",
"main": "build/index.js",
"files": [
"build/"
Expand Down
3 changes: 2 additions & 1 deletion packages/universal-swap/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ export class UniversalSwapHelper {
return {
swapAmount: "0",
returnAmount: "0",
routes: []
routes: [],
error: error
};
}
};
Expand Down
1 change: 1 addition & 0 deletions packages/universal-swap/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export type SmartRouterResponse = {
swapAmount: string;
returnAmount: string;
routes: Route[];
error?: any;
};

export type ConvertType = Convert | ConvertReverse;
Expand Down

0 comments on commit cf3d45a

Please sign in to comment.