Browse Source

bug fix (when deploying a contract which has not been opened)

cl-refactor
yann300 10 years ago
parent
commit
43a39fae07
  1. 7
      mix/qml/DeploymentWorker.qml

7
mix/qml/DeploymentWorker.qml

@ -170,10 +170,11 @@ Item
{ {
if (!clientModelGasEstimation.running) if (!clientModelGasEstimation.running)
{ {
var ctr = projectModel.codeEditor.getContracts() for (var si = 0; si < projectModel.listModel.count; si++)
for (var k in ctr)
{ {
codeModelGasEstimation.registerCodeChange(ctr[k].document.documentId, ctr[k].getText()); var document = projectModel.listModel.get(si);
if (document.isContract)
codeModelGasEstimation.registerCodeChange(document.documentId, fileIo.readFile(document.path));
} }
gasEstimationConnect.callback = callback gasEstimationConnect.callback = callback
clientModelGasEstimation.setupScenario(scenario) clientModelGasEstimation.setupScenario(scenario)

Loading…
Cancel
Save