From 2e12a1733ba722546c4820c6ced5440f8f9d5527 Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Fri, 17 Jul 2020 15:48:38 +0100 Subject: [PATCH] Fix example in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4b71a0..6310c79 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ const testnet = new QrlNode(ip, port) make a connection to the node: ```javascript -testnet.connect().then(client => { - console.log(client.connection) // true if connection successful +testnet.connect().then(() => { + console.log(testnet.connection) // true if connection successful }) ```