add loadCompilationData method

pull/7/head
Iuri Matias 6 years ago
parent 0046453a42
commit a9790829d6
  1. 7
      remix-debug/src/cmdline/index.js

@ -15,6 +15,13 @@ class CmdLine {
this.web3 = new Web3(new Web3.providers.HttpProvider(url))
}
loadCompilationData (inputJson, outputJson) {
let data = {}
data.data = outputJson
data.source = { sources: inputJson.sources }
this.loadCompilationResult(data)
}
loadCompilationResult (compilationResult) {
this.compilation = {}
this.compilation.lastCompilationResult = compilationResult

Loading…
Cancel
Save