Commit a9790829 authored by Iuri Matias's avatar Iuri Matias

add loadCompilationData method

parent 0046453a
...@@ -15,6 +15,13 @@ class CmdLine { ...@@ -15,6 +15,13 @@ class CmdLine {
this.web3 = new Web3(new Web3.providers.HttpProvider(url)) 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) { loadCompilationResult (compilationResult) {
this.compilation = {} this.compilation = {}
this.compilation.lastCompilationResult = compilationResult this.compilation.lastCompilationResult = compilationResult
......
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