@1inch/fusion-sdk 2.3.9-rc.4 → 2.3.9-rc.5

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.
@@ -67,9 +67,6 @@ var QuoterRequest = /*#__PURE__*/ function() {
67
67
  var _params_isPermit2;
68
68
  this.isPermit2 = (_params_isPermit2 = params.isPermit2) !== null && _params_isPermit2 !== void 0 ? _params_isPermit2 : false;
69
69
  this.slippage = params.slippage;
70
- if (this.fromTokenAddress.isNative()) {
71
- throw new Error("cannot swap ".concat(_limitordersdk.Address.NATIVE_CURRENCY, ": wrap native currency to it's wrapper fist"));
72
- }
73
70
  if (this.fromTokenAddress.isZero() || this.toTokenAddress.isZero()) {
74
71
  throw new Error("replace ".concat(_limitordersdk.Address.ZERO_ADDRESS, " with ").concat(_limitordersdk.Address.NATIVE_CURRENCY));
75
72
  }
@@ -57,9 +57,6 @@ export var QuoterRequest = /*#__PURE__*/ function() {
57
57
  var _params_isPermit2;
58
58
  this.isPermit2 = (_params_isPermit2 = params.isPermit2) !== null && _params_isPermit2 !== void 0 ? _params_isPermit2 : false;
59
59
  this.slippage = params.slippage;
60
- if (this.fromTokenAddress.isNative()) {
61
- throw new Error("cannot swap ".concat(Address.NATIVE_CURRENCY, ": wrap native currency to it's wrapper fist"));
62
- }
63
60
  if (this.fromTokenAddress.isZero() || this.toTokenAddress.isZero()) {
64
61
  throw new Error("replace ".concat(Address.ZERO_ADDRESS, " with ").concat(Address.NATIVE_CURRENCY));
65
62
  }
@@ -1 +1 @@
1
- {"name":"@1inch/fusion-sdk","version":"2.3.9-rc.4","type":"module"}
1
+ {"name":"@1inch/fusion-sdk","version":"2.3.9-rc.5","type":"module"}