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)
{
var ctr = projectModel.codeEditor.getContracts()
for (var k in ctr)
for (var si = 0; si < projectModel.listModel.count; si++)
{
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
clientModelGasEstimation.setupScenario(scenario)

Loading…
Cancel
Save