From b06ca1b3c739acc8475b39dbfd0a2c16f4175ec8 Mon Sep 17 00:00:00 2001 From: Guy Sviry <32539816+guysv@users.noreply.github.com> Date: Fri, 17 May 2019 13:11:22 +0300 Subject: [PATCH] feat: pass libp2p as option to transport creation (#363) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 90fd0337..839fc8a2 100644 --- a/src/index.js +++ b/src/index.js @@ -345,7 +345,7 @@ class Node extends EventEmitter { let t if (typeof Transport === 'function') { - t = new Transport() + t = new Transport({ libp2p: this }) } else { t = Transport }