Merge pull request #1446 from ethereum/addEthersLibToTheConsole

add ethers.js to the console
pull/1/head
yann300 6 years ago committed by GitHub
commit d35fe6f57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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: {

Loading…
Cancel
Save