Skip to content

Commit

Permalink
validator owner address change
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyismav committed Apr 2, 2021
1 parent 987e9d7 commit c53af27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/src/mappings/staking-nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function handleTransfer(event: Transfer): void {
let transactionHashes = entity.transactionHashes
transactionHashes.push(event.transaction.hash)
entity.transactionHashes = transactionHashes

let validator = Validator.load(event.params.tokenId)
let validatorId = "validator:" + event.params.tokenId.toString()
let validator = Validator.load(validatorId)
validator.owner = event.params.to

// save entity
Expand Down

0 comments on commit c53af27

Please sign in to comment.