From 02522142dc33fdbb488a223e04bb161ae5a2d07e Mon Sep 17 00:00:00 2001 From: Raman Shekhawat Date: Mon, 30 Oct 2023 13:50:51 +0530 Subject: [PATCH] add tx fee --- src/processor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/processor.ts b/src/processor.ts index 48813c0cb..f29ae59e2 100644 --- a/src/processor.ts +++ b/src/processor.ts @@ -356,6 +356,7 @@ processor.run( // eslint-disable-next-line no-await-in-loop const signer = await getOrCreateAccount(ctx as unknown as CommonContext, hexToU8a(publicKey)) // TODO: Get or create accounts on batches const callName = call.name.split('.') + const txFee = (fee ?? 0n) + (fuelTank?.feePaid ?? 0n) const extrinsic = new Extrinsic({ id, @@ -372,7 +373,7 @@ processor.run( tip, error, fee: new Fee({ - amount: fee, + amount: txFee, who: signer.id, }), fuelTank,