diff --git a/packages/contracts/source/contracts/transactions.ts b/packages/contracts/source/contracts/transactions.ts index a2d2efb5b..6cbb319f1 100644 --- a/packages/contracts/source/contracts/transactions.ts +++ b/packages/contracts/source/contracts/transactions.ts @@ -81,5 +81,4 @@ export interface TransactionValidator { validate(context: TransactionValidatorContext, transaction: Transaction): Promise; } - export type TransactionValidatorFactory = () => TransactionValidator; diff --git a/packages/processor/source/transaction-processor.ts b/packages/processor/source/transaction-processor.ts index a928a466a..0846978b2 100644 --- a/packages/processor/source/transaction-processor.ts +++ b/packages/processor/source/transaction-processor.ts @@ -53,10 +53,7 @@ export class TransactionProcessor implements Contracts.Processor.TransactionProc const receipt = await transactionHandler.apply(transactionHandlerContext, transaction); - const feeConsumed = this.gasFeeCalculator.calculateConsumed( - transaction.data.fee, - Number(receipt.gasUsed), - ); + const feeConsumed = this.gasFeeCalculator.calculateConsumed(transaction.data.fee, Number(receipt.gasUsed)); this.logger.debug( `executed EVM call (success=${receipt.success}, gasUsed=${receipt.gasUsed} paidNativeFee=${Utils.formatCurrency(this.configuration, feeConsumed)} deployed=${receipt.deployedContractAddress})`, );