From 438588d67841458ceffedd3473ad72930170bc4e Mon Sep 17 00:00:00 2001 From: Kristina Nikolaeva Date: Tue, 13 Aug 2024 13:22:28 +0200 Subject: [PATCH] Update report.ts --- helpers/report.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/report.ts b/helpers/report.ts index e34b8346..f86dc412 100644 --- a/helpers/report.ts +++ b/helpers/report.ts @@ -12,6 +12,9 @@ class Report { } addAction(name: string, usedGas: number, gasPrice: number | BigNumber, tx: string): void { + if (gasPrice instanceof BigNumber) { + gasPrice = gasPrice.toNumber(); + } this.actions.push({ name: name, usedGas: usedGas,