Skip to content

Commit

Permalink
added refundTransaction to user
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-converter committed Feb 11, 2021
1 parent c1911da commit 82f640f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type User @entity {
cmStatus: Boolean!
cmStatusInLaunch: Boolean!
gasRefunded: BigInt!
refundTransaction: String
}

type Reservation @entity {
Expand Down
1 change: 1 addition & 0 deletions src/mapping-refundSponsor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export function handleRefundIssued (event: RefundIssued): void {
let userID = event.params.refundedTo.toHexString()
let user = createUser(userID)
user.gasRefunded = event.params.amount
user.refundTransaction = event.transaction.hash.toHexString()
user.save()
}

0 comments on commit 82f640f

Please sign in to comment.