mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
docs: Update ipfs http client instantiation to match new method.
This commit is contained in:
parent
0b67e74fb9
commit
b51298fb20
@ -116,10 +116,10 @@ npm install orbit-db ipfs-http-client
|
||||
```
|
||||
|
||||
```javascript
|
||||
import IpfsClient from 'ipfs-http-client'
|
||||
import { create } from 'ipfs-http-client'
|
||||
import OrbitDB from 'orbit-db'
|
||||
|
||||
const ipfs = IpfsClient('localhost', '5001')
|
||||
const ipfs = create(new URL('http://localhost:5001'))
|
||||
|
||||
const orbitdb = await OrbitDB.createInstance(ipfs)
|
||||
const db = await orbitdb.log('hello')
|
||||
|
Loading…
x
Reference in New Issue
Block a user