From 7bb5032874399793746ef757e873d50ea4a8c2cd Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 3 Mar 2015 16:46:09 +0100 Subject: [PATCH] - small changes --- mix/ClientModel.cpp | 1 - mix/MixClient.cpp | 1 - mix/qml/StateListModel.qml | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mix/ClientModel.cpp b/mix/ClientModel.cpp index ab7b5c7ea..9c6255b6e 100644 --- a/mix/ClientModel.cpp +++ b/mix/ClientModel.cpp @@ -190,7 +190,6 @@ void ClientModel::setupState(QVariantMap _state) if (contractId.isEmpty() && m_context->codeModel()->hasContract()) //TODO: This is to support old project files, remove later contractId = m_context->codeModel()->contracts().keys()[0]; QVariantList qParams = transaction.value("qType").toList(); - TransactionSettings transactionSettings(contractId, functionId, value, gas, gasPrice, Secret(sender.toStdString())); for (QVariant const& variant: qParams) diff --git a/mix/MixClient.cpp b/mix/MixClient.cpp index 7b38a3743..aaa37a8bb 100644 --- a/mix/MixClient.cpp +++ b/mix/MixClient.cpp @@ -21,7 +21,6 @@ */ #include -#include #include #include #include diff --git a/mix/qml/StateListModel.qml b/mix/qml/StateListModel.qml index c2eb43bc1..61307826c 100644 --- a/mix/qml/StateListModel.qml +++ b/mix/qml/StateListModel.qml @@ -11,10 +11,10 @@ Item { property alias model: stateListModel property var stateList: [] - property string defaultAccount: "cb73d9408c4720e230387d956eb0f829d8a4dd2c1055f96257167e14e7169074" + property string defaultAccount: "cb73d9408c4720e230387d956eb0f829d8a4dd2c1055f96257167e14e7169074" //support for old project function fromPlainStateItem(s) { if (!s.accounts) - s.accounts = [stateListModel.newAccount("1000000", QEther.Ether, defaultAccount)]; //support old project + s.accounts = [stateListModel.newAccount("1000000", QEther.Ether, defaultAccount)]; //support for old project return { title: s.title, transactions: s.transactions.map(fromPlainTransactionItem), @@ -33,7 +33,7 @@ Item { function fromPlainTransactionItem(t) { if (!t.sender) - t.sender = defaultAccount; //support old project + t.sender = defaultAccount; //support for old project var r = { contractId: t.contractId, functionId: t.functionId,