add loadCompilationData method

pull/5370/head
Iuri Matias 6 years ago
parent cdd5da3298
commit f80539315e
  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