diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 516e5759a..a0352b73c 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -506,7 +506,7 @@ void Main::on_data_textChanged() } else { - string code = ui->data->toPlainText().replace(" ", "").toStdString(); + string code = ui->data->toPlainText().replace(" ", "").replace("\n", "").replace("\t", "").toStdString(); try { m_data = fromHex(code); diff --git a/libethereum/Instruction.cpp b/libethereum/Instruction.cpp index 41e421264..8671e97b0 100644 --- a/libethereum/Instruction.cpp +++ b/libethereum/Instruction.cpp @@ -529,7 +529,6 @@ static int compileLispFragment(char const*& d, char const* e, bool _quiet, bytes return false; unsigned startLocation = (unsigned)o_code.size(); - o_locs.push_back(startLocation); // First fragment - predicate appendCode(o_code, o_locs, codes[0], locs[0]); diff --git a/libethereum/State.h b/libethereum/State.h index 48167b0fc..60a2329ef 100644 --- a/libethereum/State.h +++ b/libethereum/State.h @@ -275,6 +275,9 @@ public: h160 create(u256 _endowment, u256* _gas, bytesConstRef _code, bytesConstRef _init) { + // Increment associated nonce for sender. + m_s.noteSending(myAddress); + return m_s.create(myAddress, _endowment, gasPrice, _gas, _code, _init); }