From bca332d5812a7d384bcc4671c5fffca208ca64fe Mon Sep 17 00:00:00 2001 From: zoeyTM Date: Fri, 22 Nov 2024 00:33:02 -0500 Subject: [PATCH] format value field to match bignumber formatting in params --- .../src/ui/helpers/calculate-list-transactions-display.ts | 2 +- .../test/ui/helpers/calculate-list-transactions-display.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hardhat-plugin/src/ui/helpers/calculate-list-transactions-display.ts b/packages/hardhat-plugin/src/ui/helpers/calculate-list-transactions-display.ts index 4527234fe..78b6bb717 100644 --- a/packages/hardhat-plugin/src/ui/helpers/calculate-list-transactions-display.ts +++ b/packages/hardhat-plugin/src/ui/helpers/calculate-list-transactions-display.ts @@ -35,7 +35,7 @@ export function calculateListTransactionsDisplay( } if (transaction.value !== undefined) { - text += ` - Value: ${transaction.value}\n`; + text += ` - Value: '${transaction.value}n'\n`; } text += "\n"; diff --git a/packages/hardhat-plugin/test/ui/helpers/calculate-list-transactions-display.ts b/packages/hardhat-plugin/test/ui/helpers/calculate-list-transactions-display.ts index 4e8fd6f48..d1c950e95 100644 --- a/packages/hardhat-plugin/test/ui/helpers/calculate-list-transactions-display.ts +++ b/packages/hardhat-plugin/test/ui/helpers/calculate-list-transactions-display.ts @@ -29,7 +29,7 @@ Transaction 1: - Name: BasicContract - Address: 0x74e720c9B362ae3A65fF356ad62866511486BBBc - Params: ['42n'] - - Value: 10 + - Value: '10n' `; @@ -68,7 +68,7 @@ Transaction 1: - Name: BasicContract - Address: 0x74e720c9B362ae3A65fF356ad62866511486BBBc - Params: [1,2,'A','B',['42n','43n'],{sub:{a:'44n'}}] - - Value: 10 + - Value: '10n' `;