From 680d43fd8146cc6159890374069618adc70c5bbc Mon Sep 17 00:00:00 2001 From: orhoj Date: Mon, 6 Nov 2023 14:13:54 +0100 Subject: [PATCH] Fix rendering of max contract execution energy --- packages/browser-wallet/CHANGELOG.md | 1 + .../TransactionReceipt/displayPayload/DisplayInitContract.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/browser-wallet/CHANGELOG.md b/packages/browser-wallet/CHANGELOG.md index ed4cc459..692f9473 100644 --- a/packages/browser-wallet/CHANGELOG.md +++ b/packages/browser-wallet/CHANGELOG.md @@ -6,6 +6,7 @@ - Sign message's rendered view displaying 'a' when deserialization failed. - Sign message deserialization failing with new `deserializeTypeValue`. +- An issue where the max contract execution energy was not rendered correctly for init contract transactions. ## 1.1.10 diff --git a/packages/browser-wallet/src/popup/shared/TransactionReceipt/displayPayload/DisplayInitContract.tsx b/packages/browser-wallet/src/popup/shared/TransactionReceipt/displayPayload/DisplayInitContract.tsx index cef5af11..e478d88e 100644 --- a/packages/browser-wallet/src/popup/shared/TransactionReceipt/displayPayload/DisplayInitContract.tsx +++ b/packages/browser-wallet/src/popup/shared/TransactionReceipt/displayPayload/DisplayInitContract.tsx @@ -26,7 +26,7 @@ export default function DisplayInitContract({ payload, parameters }: Props) { {displayAsCcd(payload.amount.microCcdAmount)}
{t('maxEnergy')}:
- {payload.maxContractExecutionEnergy.toString()} {t('nrg')} + {payload.maxContractExecutionEnergy.value.toString()} {t('nrg')}