From 2df5cac9f5c2cfdcb594723eb76fb1410f4cd262 Mon Sep 17 00:00:00 2001 From: Diogo Silva Date: Fri, 9 Nov 2018 11:45:19 +0000 Subject: [PATCH] fix: ipfs connection test --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5fc6466..0284682 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ const defaultOptions = { defaultApiAddress: '/ip4/127.0.0.1/tcp/5001', ipfsConnectionTest: (ipfs) => { // ipfs connection is working if can we fetch the empty directtory. - return ipfs.get('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn') + return ipfs.files.get('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn') } }