@lifi/sdk 3.8.0-alpha.0 → 3.8.0-alpha.1

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
@@ -69,5 +69,5 @@
69
69
  "sideEffects": false,
70
70
  "types": "./src/_types/index.d.ts",
71
71
  "typings": "./src/_types/index.d.ts",
72
- "version": "3.8.0-alpha.0"
72
+ "version": "3.8.0-alpha.1"
73
73
  }
@@ -209,7 +209,7 @@ class EVMStepExecutor extends BaseStepExecutor_js_1.BaseStepExecutor {
209
209
  chainId: fromChain.id,
210
210
  });
211
211
  await (0, checkBalance_js_1.checkBalance)(this.client.account.address, step);
212
- if (!step.transactionRequest ||
212
+ if (!step.transactionRequest &&
213
213
  !step.typedData?.some((p) => p.primaryType !== 'Permit')) {
214
214
  const updatedStep = await this.getUpdatedStep(step, signedNativePermitTypedData);
215
215
  const comparedStep = await (0, stepComparison_js_1.stepComparison)(this.statusManager, step, updatedStep, this.allowUserInteraction, this.executionOptions);
@@ -218,7 +218,7 @@ class EVMStepExecutor extends BaseStepExecutor_js_1.BaseStepExecutor {
218
218
  execution: step.execution,
219
219
  });
220
220
  }
221
- if (!step.transactionRequest ||
221
+ if (!step.transactionRequest &&
222
222
  !step.typedData?.some((p) => p.primaryType !== 'Permit')) {
223
223
  throw new errors_js_1.TransactionError(constants_js_1.LiFiErrorCode.TransactionUnprepared, 'Unable to prepare transaction.');
224
224
  }
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/sdk';
5
- exports.version = '3.8.0-alpha.0';
5
+ exports.version = '3.8.0-alpha.1';
6
6
  //# sourceMappingURL=version.js.map
@@ -239,7 +239,7 @@ export class EVMStepExecutor extends BaseStepExecutor {
239
239
  // Check balance
240
240
  await checkBalance(this.client.account.address, step);
241
241
  // Create new transaction request
242
- if (!step.transactionRequest ||
242
+ if (!step.transactionRequest &&
243
243
  !step.typedData?.some((p) => p.primaryType !== 'Permit')) {
244
244
  const updatedStep = await this.getUpdatedStep(step, signedNativePermitTypedData);
245
245
  const comparedStep = await stepComparison(this.statusManager, step, updatedStep, this.allowUserInteraction, this.executionOptions);
@@ -248,7 +248,7 @@ export class EVMStepExecutor extends BaseStepExecutor {
248
248
  execution: step.execution,
249
249
  });
250
250
  }
251
- if (!step.transactionRequest ||
251
+ if (!step.transactionRequest &&
252
252
  !step.typedData?.some((p) => p.primaryType !== 'Permit')) {
253
253
  throw new TransactionError(LiFiErrorCode.TransactionUnprepared, 'Unable to prepare transaction.');
254
254
  }
@@ -1,3 +1,3 @@
1
1
  export const name = '@lifi/sdk';
2
- export const version = '3.8.0-alpha.0';
2
+ export const version = '3.8.0-alpha.1';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "3.8.0-alpha.0";
2
+ export declare const version = "3.8.0-alpha.1";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -392,7 +392,7 @@ export class EVMStepExecutor extends BaseStepExecutor {
392
392
 
393
393
  // Create new transaction request
394
394
  if (
395
- !step.transactionRequest ||
395
+ !step.transactionRequest &&
396
396
  !step.typedData?.some((p) => p.primaryType !== 'Permit')
397
397
  ) {
398
398
  const updatedStep = await this.getUpdatedStep(
@@ -413,7 +413,7 @@ export class EVMStepExecutor extends BaseStepExecutor {
413
413
  }
414
414
 
415
415
  if (
416
- !step.transactionRequest ||
416
+ !step.transactionRequest &&
417
417
  !step.typedData?.some((p) => p.primaryType !== 'Permit')
418
418
  ) {
419
419
  throw new TransactionError(
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk'
2
- export const version = '3.8.0-alpha.0'
2
+ export const version = '3.8.0-alpha.1'