From b51298fb2008cd1e9c6b348a7f8a08cfc26927f1 Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Tue, 17 Jan 2023 16:31:46 +0000 Subject: [PATCH] docs: Update ipfs http client instantiation to match new method. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20a4611..1a2d023 100644 --- a/README.md +++ b/README.md @@ -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')