Commit a74538eb authored by yann300's avatar yann300

use visit contract instead of getContract

parent 82458b0b
...@@ -87,11 +87,11 @@ class CompileTab { ...@@ -87,11 +87,11 @@ class CompileTab {
}) })
} }
// Update contract Selection // Update contract Selection
const contractMap = this.compiler.getContracts() let contractMap = {}
const contractSelection = this.contractSelection(Object.keys(contractMap) || []) if (success) this.compiler.visitContracts((contract) => { contractMap[contract.name] = contract })
let contractSelection = this.contractSelection(Object.keys(contractMap) || [])
yo.update(this._view.contractSelection, contractSelection) yo.update(this._view.contractSelection, contractSelection)
let error = false
if (data['error']) { if (data['error']) {
error = true error = true
this._deps.renderer.error(data['error'].formattedMessage, this._view.errorContainer, {type: data['error'].severity || 'error'}) this._deps.renderer.error(data['error'].formattedMessage, this._view.errorContainer, {type: data['error'].severity || '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