diff --git a/src/components/EvmEditors/EvmBatchTxEditor.tsx b/src/components/EvmEditors/EvmBatchTxEditor.tsx index f13a89b..e2f76b9 100644 --- a/src/components/EvmEditors/EvmBatchTxEditor.tsx +++ b/src/components/EvmEditors/EvmBatchTxEditor.tsx @@ -90,12 +90,13 @@ const EvmBatchTxEditor = ({ { - setTxs((prev) => { - const newTxs = [...prev]; - newTxs[i] = tx; - return newTxs; - }); + setTransactionObject={(updatedTxs) => { + if (updatedTxs) + setTxs((prev) => { + const newTxs = [...prev]; + newTxs[i] = updatedTxs[0]; + return newTxs; + }); }} account={account} />