From e3076964793b90046fd68f84821721330ab2191d Mon Sep 17 00:00:00 2001 From: mordochi Date: Fri, 26 Jan 2024 15:24:57 +0800 Subject: [PATCH] fix: send batch transactions --- src/components/EvmEditors/EvmBatchTxEditor.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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} />