@openocean.finance/widget 1.0.17 → 1.0.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/widget",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -1,2 +1,2 @@
1
1
  export const name = '@openocean.finance/widget'
2
- export const version = '1.0.17'
2
+ export const version = '1.0.19'
@@ -463,7 +463,7 @@ export class DebridgeService {
463
463
  fromMsg.chainId === 1151111081099710
464
464
  ? 'src5qyZHqTqecJV4aY6Cb6zDZLMDzrDKKezs22MPHr4'
465
465
  : tx.to
466
- return {
466
+ const data = {
467
467
  prependedOperatingExpenseCost,
468
468
  isDebridgeRoute: true, // Flag to identify the route source
469
469
  orderId: orderId,
@@ -506,6 +506,7 @@ export class DebridgeService {
506
506
  // gasPrice: tx.gasPrice, // Not directly available in Debridge response
507
507
  // dexId: // Not applicable for Debridge
508
508
  }
509
+ return { data };
509
510
  } catch (error: any) {
510
511
  console.error(
511
512
  'Error getting Debridge quote:',