diff --git a/examples/ipfs-101/README.md b/examples/ipfs-101/README.md index 1350777e70..54dd707bca 100644 --- a/examples/ipfs-101/README.md +++ b/examples/ipfs-101/README.md @@ -48,7 +48,7 @@ node.on('ready', async () => { console.log('Version:', version.version) - const filesAdded = await node.add({ + const filesAdded = await node.files.add({ path: 'hello.txt', content: Buffer.from('Hello World 101') }) @@ -76,14 +76,14 @@ node.on('ready', async () => { console.log('Version:', version.version) - const filesAdded = await node.add({ + const filesAdded = await node.files.add({ path: 'hello.txt', content: Buffer.from('Hello World 101') }) console.log('Added file:', filesAdded[0].path, filesAdded[0].hash) - const fileBuffer = await node.cat(filesAdded[0].hash) + const fileBuffer = await node.files.cat(filesAdded[0].hash) console.log('Added file contents:', fileBuffer.toString()) })