mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-22 21:41:33 +00:00
docs(example): fix ipfs cat (#475)
`ipfs.files.cat` is incorrect. the correct function is `ipfs.cat`
This commit is contained in:
@ -44,7 +44,7 @@ class App extends Component {
|
|||||||
isLoading: this.state.isLoading + 1
|
isLoading: this.state.isLoading + 1
|
||||||
})
|
})
|
||||||
|
|
||||||
this.ipfs.files.cat(this.state.hash, (err, data) => {
|
this.ipfs.cat(this.state.hash, (err, data) => {
|
||||||
if (err) console.log('Error', err)
|
if (err) console.log('Error', err)
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
Reference in New Issue
Block a user