Commit fbf2bb94 authored by yann300's avatar yann300

add compiler to terminal

parent 2c58000f
......@@ -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) {
......
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