Browse Source

ui gasPrice changes

cl-refactor
yann300 10 years ago
parent
commit
cabfb787ac
  1. 4
      mix/qml/DeployContractStep.qml
  2. 4
      mix/qml/RegisteringStep.qml

4
mix/qml/DeployContractStep.qml

@ -297,9 +297,9 @@ Rectangle {
Ether Ether
{ {
id: gasPriceInput id: gasPriceInput
displayUnitSelection: false displayUnitSelection: true
displayFormattedValue: true displayFormattedValue: true
edit: false edit: true
function toHexWei() function toHexWei()
{ {

4
mix/qml/RegisteringStep.qml

@ -156,7 +156,7 @@ Rectangle {
NetworkDeploymentCode.checkPathCreationCost(applicationUrlEthCtrl.text, function(pathCreationCost) NetworkDeploymentCode.checkPathCreationCost(applicationUrlEthCtrl.text, function(pathCreationCost)
{ {
var ether = QEtherHelper.createBigInt(pathCreationCost); var ether = QEtherHelper.createBigInt(pathCreationCost);
var gasTotal = ether.multiply(worker.gasPriceInt); var gasTotal = ether.multiply(deploymentDialog.deployStep.gasPrice.value.toWei());
gasToUseDeployInput.value = QEtherHelper.createEther(gasTotal.value(), QEther.Wei, parent); gasToUseDeployInput.value = QEtherHelper.createEther(gasTotal.value(), QEther.Wei, parent);
gasToUseDeployInput.update(); gasToUseDeployInput.update();
}); });
@ -167,7 +167,7 @@ Rectangle {
Ether Ether
{ {
id: gasToUseDeployInput id: gasToUseDeployInput
displayUnitSelection: true displayUnitSelection: false
displayFormattedValue: true displayFormattedValue: true
edit: false edit: false
Layout.preferredWidth: 235 Layout.preferredWidth: 235

Loading…
Cancel
Save