Closed elie-h closed 2 years ago
The field manual is outdated in this respect inasmuch as now the dag.get
api requires a cid object, see the doc example here.
The cid you are using in your code is the string representation of the cid object, you first have to parse it
let parsedCid = IpfsCore.CID.parse("zdpuAvD7x5ZX5hz96MiEhFpeLayZRbBj75HwNdvJhfz8y3t4T")
before fetching the data
const content = await NPP.node.dag.get(parsedCid)
Hi!
Following the 02_Managing_Data.md section of the tutorial Looks like any calls ipfs with a CID cause a codec issue - I'm using the exact same code in the github from section 2 for define the NewPiecePlease class.
Error:
My script:
dependencies: