Skip to content

Commit

Permalink
fix: send batch transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
mordochi committed Jan 26, 2024
1 parent ae2434f commit e307696
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/EvmEditors/EvmBatchTxEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,13 @@ const EvmBatchTxEditor = ({
<Flex my="5px" alignItems="center">
<EvmTxForm
key={i}
setTransactionObject={(tx) => {
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}
/>
Expand Down

0 comments on commit e307696

Please sign in to comment.