From 6510dca4b1b0e6e61eeeba39525c55502740f39a Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 5 Apr 2019 13:51:23 +0200 Subject: [PATCH] Fix provider fallbacks for non dev networks This now checks if frame or a local node is running and else uses infura to connect to the ethereum network. Now you can use all the helpers for the testnets/mainnet without running anything (in readonly mode) --- truffle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truffle.js b/truffle.js index a162489..39f76c9 100644 --- a/truffle.js +++ b/truffle.js @@ -28,7 +28,7 @@ const providerForNetwork = (network) => ( let [first, ...rest] = network; preset = `infura${first.toUpperCase()}${rest.join('')}`; } - return provider('frame', 'local', preset); + return provider(['frame', 'local', preset]); } } )