add compiler to terminal

pull/3094/head
yann300 6 years ago
parent 9dfd37df0b
commit c82921ba9c
  1. 8
      src/app/panels/editor-panel.js
  2. 1
      src/app/panels/terminal.js
  3. 1
      src/app/tabs/run-tab.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) => {

@ -613,6 +613,7 @@ class Terminal {
function domTerminalFeatures (self, scopedCommands) {
return {
compilers: self._opts.compilers,
swarmgw,
ethers,
remix: self._components.cmdInterpreter,

@ -404,6 +404,7 @@ function contractDropdown (events, self) {
if (data) {
data.contractName = selectedContract.name
data.linkReferences = selectedContract.contract.object.evm.bytecode.linkReferences
data.contractABI = selectedContract.contract.object.abi
}
self._deps.udapp.createContract(data, (error, txResult) => {
if (!error) {

Loading…
Cancel
Save