From 934b49ddea1f6da2940b421acf34a8982e4f8908 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Aug 2018 09:40:46 +0200 Subject: [PATCH] add ethers.js to the console --- src/app/panels/terminal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index bfe9537b75..c837da66cc 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -2,6 +2,7 @@ var yo = require('yo-yo') var javascriptserialize = require('javascript-serialize') var jsbeautify = require('js-beautify') +var ethers = require('ethers') var type = require('component-type') var vm = require('vm') var remixLib = require('remix-lib') @@ -574,6 +575,7 @@ class Terminal { function domTerminalFeatures (self, scopedCommands) { return { + ethers, remix: self._components.cmdInterpreter, web3: executionContext.getProvider() !== 'vm' ? new Web3(executionContext.web3().currentProvider) : null, console: {