Skip to content

Commit

Permalink
fix: ignore failed txs in burnTotal script (#862)
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz authored Jan 11, 2024
1 parent db14114 commit 92a3890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/scripts/burnTotal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const main = async () => {
const txs = JSON.parse(burnTxsJSON);

for (const tx of txs.txs) {
if (tx.code !== 0) {
continue;
}
const burnValue = getEventValue(tx.events, "burn", "amount");
if (!burnValue) {
continue;
Expand Down

0 comments on commit 92a3890

Please sign in to comment.