From 2cf40019e0e6383cd48e2e69a0b484af6512a07b Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Mon, 13 Sep 2021 23:37:48 +1000 Subject: [PATCH] fix: types --- src/modules/queue/transaction.processor.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/queue/transaction.processor.ts b/src/modules/queue/transaction.processor.ts index 5605304..ea0e4ad 100644 --- a/src/modules/queue/transaction.processor.ts +++ b/src/modules/queue/transaction.processor.ts @@ -17,6 +17,8 @@ import { ChainId } from '@/types'; export type ExtData = { recipient: string; relayer: string; + fee: BigNumberish; + extAmount: BigNumberish; encryptedOutput1: BytesLike; encryptedOutput2: BytesLike; }; @@ -28,8 +30,6 @@ export type ArgsProof = { inputNullifiers: string[]; outputCommitments: BytesLike[]; outPathIndices: string; - extAmount: BigNumberish; - fee: BigNumberish; extDataHash: string; }; @@ -61,9 +61,9 @@ export class TransactionProcessor extends BaseProcessor { try { await job.isActive(); - const { args, amount } = job.data; + const { extData, amount } = job.data; - await this.checkFee({ fee: args[6], amount }); + await this.checkFee({ fee: extData.fee, amount }); await this.submitTx(job); } catch (err) { await job.moveToFailed(err, true);