From f80539315e83e436b302f803f4bdf11228493248 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 19 Oct 2018 15:29:02 -0400 Subject: [PATCH] add loadCompilationData method --- remix-debug/src/cmdline/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remix-debug/src/cmdline/index.js b/remix-debug/src/cmdline/index.js index 94a1d22ab0..7f6523684d 100644 --- a/remix-debug/src/cmdline/index.js +++ b/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