DEV Community

Discussion on: Building GraphQL APIs on Ethereum

Collapse
 
konbuscus profile image
Axel Masson

Hello ! I'm getting Compile data source: Token => build\Token\Token.wasm

  • Compile subgraphERROR TS2322: Type 'generated/schema/Token | null' is not assignable to type 'generated/schema/Token'.

token.contentURI = event.params._uri;

 in src/mapping.ts(14,3)

for all the function that uses or load Token do you have any idea on why ?
Enter fullscreen mode Exit fullscreen mode
Collapse
 
dabit3 profile image
Nader Dabit

Hey, unsure what happened, maybe there was an update to the CLI, but I just fixed the mappings and it should work now, sorry for the inconvenience!