Commit fbf2bb94 authored by yann300's avatar yann300

add compiler to terminal

parent 2c58000f
...@@ -26,7 +26,8 @@ class EditorPanel { ...@@ -26,7 +26,8 @@ class EditorPanel {
config: self._components.registry.get('config').api, config: self._components.registry.get('config').api,
txListener: self._components.registry.get('txlistener').api, txListener: self._components.registry.get('txlistener').api,
fileManager: self._components.registry.get('filemanager').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 = { self.data = {
_FILE_SCROLL_DELTA: 200, _FILE_SCROLL_DELTA: 200,
...@@ -46,7 +47,10 @@ class EditorPanel { ...@@ -46,7 +47,10 @@ class EditorPanel {
contextualListener: contextualListener, contextualListener: contextualListener,
contextView: new ContextView({contextualListener: contextualListener, editor: editor}), contextView: new ContextView({contextualListener: contextualListener, editor: editor}),
terminal: new Terminal({ terminal: new Terminal({
udapp: self._deps.udapp udapp: self._deps.udapp,
compilers: {
'solidity': self._deps.compiler
}
}, },
{ {
getPosition: (event) => { getPosition: (event) => {
......
...@@ -613,6 +613,7 @@ class Terminal { ...@@ -613,6 +613,7 @@ class Terminal {
function domTerminalFeatures (self, scopedCommands) { function domTerminalFeatures (self, scopedCommands) {
return { return {
compilers: self._opts.compilers,
swarmgw, swarmgw,
ethers, ethers,
remix: self._components.cmdInterpreter, remix: self._components.cmdInterpreter,
......
...@@ -404,6 +404,7 @@ function contractDropdown (events, self) { ...@@ -404,6 +404,7 @@ function contractDropdown (events, self) {
if (data) { if (data) {
data.contractName = selectedContract.name data.contractName = selectedContract.name
data.linkReferences = selectedContract.contract.object.evm.bytecode.linkReferences data.linkReferences = selectedContract.contract.object.evm.bytecode.linkReferences
data.contractABI = selectedContract.contract.object.abi
} }
self._deps.udapp.createContract(data, (error, txResult) => { self._deps.udapp.createContract(data, (error, txResult) => {
if (!error) { 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