From aecff41321f7f04339b658e4f0a8cd1fc4fd2ad2 Mon Sep 17 00:00:00 2001 From: Lucemans Date: Sun, 17 Mar 2024 16:28:30 +0000 Subject: [PATCH] Update Commitments --- web/src/txHistory/TransactionEntry.tsx | 51 +++++++++++++++++--------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/web/src/txHistory/TransactionEntry.tsx b/web/src/txHistory/TransactionEntry.tsx index e95667f..99d9a48 100644 --- a/web/src/txHistory/TransactionEntry.tsx +++ b/web/src/txHistory/TransactionEntry.tsx @@ -155,24 +155,41 @@ export const TransactionEntry: FC<{ txHash: EtherscanTx }> = ({ txHash }) => { className="hidden" />
-
-
Names
-
-
    - {inputData?.args[0].map((name, _index) => ( -
  • - - {name} - -
  • - ))} -
+ {inputData?.functionName === 'multiRegister' || + (inputData?.functionName === 'renewAll' && ( +
+
Names
+
+
    + {inputData?.args[0].map((name, _index) => ( +
  • + + {name} + +
  • + ))} +
+
+
+ ))} + {inputData?.functionName === 'multiCommit' && ( +
+
Commitments
+
+
    + {inputData?.args[0].map( + (commitment, _index) => ( +
  • {commitment}
  • + ) + )} +
+
-
+ )}
{JSON.stringify(txHash)}