Skip to content

Commit

Permalink
fix: listing queries script
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 committed Nov 29, 2022
1 parent 1e20988 commit 56b1d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ task(


const events = await desmoContract.queryFilter(desmoContract.filters.QueryCompleted())
const failedQueries = await desmoContract.queryFilter(desmoContract.filters.QueryCompleted())
const failedQueries = await desmoContract.queryFilter(desmoContract.filters.QueryFailed())

console.log(events.map((event) => ({id: event.args.id, result: event.args.result, scores: event.args.result.scores})))
console.log(failedQueries.map((event) => ({id: event.args.id })))
Expand Down

0 comments on commit 56b1d4c

Please sign in to comment.