Commit d0f723a4 authored by yann300's avatar yann300

add ethers.js to the console

parent c95d86e0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
var yo = require('yo-yo') var yo = require('yo-yo')
var javascriptserialize = require('javascript-serialize') var javascriptserialize = require('javascript-serialize')
var jsbeautify = require('js-beautify') var jsbeautify = require('js-beautify')
var ethers = require('ethers')
var type = require('component-type') var type = require('component-type')
var vm = require('vm') var vm = require('vm')
var remixLib = require('remix-lib') var remixLib = require('remix-lib')
...@@ -574,6 +575,7 @@ class Terminal { ...@@ -574,6 +575,7 @@ class Terminal {
function domTerminalFeatures (self, scopedCommands) { function domTerminalFeatures (self, scopedCommands) {
return { return {
ethers,
remix: self._components.cmdInterpreter, remix: self._components.cmdInterpreter,
web3: executionContext.getProvider() !== 'vm' ? new Web3(executionContext.web3().currentProvider) : null, web3: executionContext.getProvider() !== 'vm' ? new Web3(executionContext.web3().currentProvider) : null,
console: { console: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment