diff --git a/schema.graphql b/schema.graphql index ebb1525..9fbf1e3 100644 --- a/schema.graphql +++ b/schema.graphql @@ -25,6 +25,7 @@ type User @entity { cmStatus: Boolean! cmStatusInLaunch: Boolean! gasRefunded: BigInt! + refundTransaction: String } type Reservation @entity { diff --git a/src/mapping-refundSponsor.ts b/src/mapping-refundSponsor.ts index b113022..593e007 100644 --- a/src/mapping-refundSponsor.ts +++ b/src/mapping-refundSponsor.ts @@ -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() }