DEV Community

Discussion on: Building GraphQL APIs on Ethereum

Collapse
 
jeainnybean profile image
Friendly Tin Man • Edited

Hi Nader!
The command "graph build" failed to compile data source mapping. This was caused by the error "Type 'Bytes' is not assignable to type 'string'."

This error pops up in two places:

  1. inside mapping.ts function "handleTokenIPFSPathUpdated",
    entity.indexedTokenIPFSPath = event.params.indexedTokenIPFSPath

  2. inside mapping.ts function "handleMinted",
    entity.indexedTokenIPFSPath = event.params.indexedTokenIPFSPath

How can I fix this issue?

Collapse
 
soniajoseph profile image
Sonia Joseph

I'm also getting this issue. Any updates on progress?