Skip to content

Commit

Permalink
Merge pull request #19 from maticnetwork/array-initialisation-issue-f…
Browse files Browse the repository at this point in the history
…ixed

Initialisation Issue of Array fixed
  • Loading branch information
itzmeanjan authored Jan 13, 2021
2 parents 71f1c81 + 4feeb1e commit 1c9921b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions root/src/mappings/staking-nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export function handleTransfer(event: Transfer): void {
if (entity == null) {
// if not found in store, creating new instance for this NFT
entity = new StakingNFTTransfer(id)
entity.previousOwners = []
entity.transactionHashes = []
}

entity.tokenId = event.params.tokenId
Expand Down

0 comments on commit 1c9921b

Please sign in to comment.