diff --git a/alethzero/Transact.cpp b/alethzero/Transact.cpp index 2648367f8..0b0710379 100644 --- a/alethzero/Transact.cpp +++ b/alethzero/Transact.cpp @@ -237,7 +237,7 @@ void Transact::rejigData() if (!ui->gas->isEnabled()) ui->gas->setValue(m_backupGas); ui->gas->setEnabled(true); - if (ui->gas->value() == ui->gas->minimum() && m_ethereum) + if (ui->gas->value() == ui->gas->minimum() && src.size()) ui->gas->setValue((int)(m_ethereum->postState().gasLimitRemaining() / 10)); } else