Skip to content

Commit

Permalink
[Explorer] Do not throw on batch transactions (MystenLabs#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
666lcz authored May 26, 2022
1 parent 2300cda commit 459ec5e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ async function getRecentTransactions(
// TODO: handle multiple transactions
const txns = getTransactions(res);
if (txns.length > 1) {
throw new Error(
`Handling multiple transactions is not yet supported`
console.error(
'Handling multiple transactions is not yet supported',
txEff
);
return null;
}
const txn = txns[0];
const txKind = getTransactionKindName(txn);
Expand Down

0 comments on commit 459ec5e

Please sign in to comment.