Up next

How to Build Ethereum Dapp With IPFS - Blockchain Programming Tutorial

5 Views· 08/29/21
CryptoChes
CryptoChes
1 Subscribers
1

🀑 Learn how to become a highly paid blockchain dev:http://www.dappuniversity.com/bootcamp

⁣The "ipfs-http-client" dependency in the video is 33.1.1. The current one, as of March 2020, is 42.0.0 and has various modifications. One of them is the "ipfs.add" function, which does not accept a callback function anymore. However, you can use the following code to do the job:

for await (const file of ipfs.add(this.state.buffer)) {
console.log(file); // or process the file
}

Show more

 0 Comments sort   Sort By


Up next