Skip to content

Commit

Permalink
Merge pull request #91 from blocto/bugfix/fix-send-batch
Browse files Browse the repository at this point in the history
fix: send batch transactions
  • Loading branch information
mordochi authored Jan 29, 2024
2 parents ae2434f + e307696 commit fe07952
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 fe07952

Please sign in to comment.