Skip to content

Commit

Permalink
fix(billboard): fallback event args
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Mar 5, 2024
1 parent d4b5c19 commit f37e6f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions handlers/clear-auction-and-distribute-tax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ export const handler = async (
console.log(`Context: ${JSON.stringify(context, null, 2)}`)

const slack = new Slack()
const fromTokenId = BigInt(event.fromTokenId) || BigInt(0)
const toTokenId = BigInt(event.toTokenId) || BigInt(0)
const fromBlock = BigInt(event.fromBlock) || BigInt(0)
const toBlock = BigInt(event.toBlock) || BigInt(0)
const amount = BigInt(event.amount) || BigInt(0)
const fromTokenId = BigInt(event.fromTokenId || 0)
const toTokenId = BigInt(event.toTokenId || 0)
const fromBlock = BigInt(event.fromBlock || 0)
const toBlock = BigInt(event.toBlock || 0)
const amount = BigInt(event.amount || 0)
const merkleRoot = event.merkleRoot as `0x${string}`
const treeId = `${fromBlock}-${toBlock}`

Expand Down

0 comments on commit f37e6f3

Please sign in to comment.