From 6c75c0ee864edc9a9705a5d4b6b0ce01a3706543 Mon Sep 17 00:00:00 2001 From: Gadzook8 Date: Wed, 5 Jun 2019 05:07:37 -0600 Subject: [PATCH] Fixed example code in Guide.md Fixed await operator outside of async function. --- GUIDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUIDE.md b/GUIDE.md index c605fea..dbd3f87 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -68,7 +68,7 @@ const ipfsOptions = { // Create IPFS instance const ipfs = new IPFS(ipfsOptions) -ipfs.on('ready', () => { +ipfs.on('ready', async () => { // Create OrbitDB instance const orbitdb = await OrbitDB.createInstance(ipfs) })