@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 +1 -1
- package/src/_cjs/core/EVM/EVMStepExecutor.js +2 -2
- package/src/_cjs/version.js +1 -1
- package/src/_esm/core/EVM/EVMStepExecutor.js +2 -2
- package/src/_esm/version.js +1 -1
- package/src/_types/version.d.ts +1 -1
- package/src/core/EVM/EVMStepExecutor.ts +2 -2
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -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
|
}
|
package/src/_cjs/version.js
CHANGED
|
@@ -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
|
}
|
package/src/_esm/version.js
CHANGED
package/src/_types/version.d.ts
CHANGED
|
@@ -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.
|
|
2
|
+
export const version = '3.8.0-alpha.1'
|