Merge pull request #1583 from ethereum/addCompilerToTerminal

Add compiler to terminal
pull/1/head
yann300 6 years ago committed by GitHub
commit fa123d7326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/app/panels/editor-panel.js
  2. 2
      src/app/panels/terminal.js

@ -26,7 +26,8 @@ class EditorPanel {
config: self._components.registry.get('config').api,
txListener: self._components.registry.get('txlistener').api,
fileManager: self._components.registry.get('filemanager').api,
udapp: self._components.registry.get('udapp').api
udapp: self._components.registry.get('udapp').api,
compiler: self._components.registry.get('compiler').api
}
self.data = {
_FILE_SCROLL_DELTA: 200,
@ -46,7 +47,10 @@ class EditorPanel {
contextualListener: contextualListener,
contextView: new ContextView({contextualListener: contextualListener, editor: editor}),
terminal: new Terminal({
udapp: self._deps.udapp
udapp: self._deps.udapp,
compilers: {
'solidity': self._deps.compiler
}
},
{
getPosition: (event) => {

@ -378,6 +378,7 @@ class Terminal {
<li><a target="_blank" href="https://web3js.readthedocs.io/en/1.0/">web3 version 1.0.0</a></li>
<li><a target="_blank" href="https://docs.ethers.io/ethers.js/html/">ethers.js</a> </li>
<li><a target="_blank" href="https://www.npmjs.com/package/swarmgw">swarmgw</a> </li>
<li>compilers - contains currently loaded compiler</li>
</ul>
</li>
<li>Executing common command to interact with the Remix interface (see list of commands above). Note that these commands can also be included and run from a JavaScript script.</li>
@ -614,6 +615,7 @@ class Terminal {
function domTerminalFeatures (self, scopedCommands) {
return {
compilers: self._opts.compilers,
swarmgw,
ethers,
remix: self._components.cmdInterpreter,

Loading…
Cancel
Save