Skip to content

Commit

Permalink
Ignore unparsable plotnfts
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Feb 16, 2024
1 parent 7db318f commit 73ecdf0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/analyzer/plot-nfts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export function detectPlotNfts(infoLogLines: LogLine[]): PlotNft[] {
if (matches === null || matches.length !== 2) {
return
}
const plotNft = JSON.parse(matches[1].trim().replaceAll(`'`,'"'))
let plotNft: any
try {
plotNft = JSON.parse(matches[1].trim().replaceAll(`'`,'"'))
} catch (_) {
return
}
let payoutAddress = plotNft.payout_instructions
try {
payoutAddress = convertPuzzleHashToAddress(plotNft.payout_instructions)
Expand Down

0 comments on commit 73ecdf0

Please sign in to comment.