Skip to content

Commit

Permalink
Added GraphAccount metadata update to tlws
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Oct 22, 2021
1 parent d01b889 commit 54c0f8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/mappings/metadataHelpers.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ export function fetchGraphAccountMetadata(graphAccount: GraphAccount, ipfsHash:
}
graphAccount.website = jsonToString(data.get('website'))
graphAccount.save()

// Update all associated vesting contract addresses
let tlws = graphAccount.tokenLockWallets
for (let i = 0; i < tlws.length; i++) {
let tlw = GraphAccount.load(tlws[i])
tlw.codeRepository = graphAccount.codeRepository
tlw.description = graphAccount.description
tlw.image = graphAccount.image
tlw.displayName = graphAccount.displayName
tlw.isOrganization = graphAccount.isOrganization
tlw.website = graphAccount.website
tlw.save()
}
}
{{/ipfs}}
}
Expand Down

0 comments on commit 54c0f8e

Please sign in to comment.