|
@ -168,6 +168,7 @@ static std::string toString(TransactionException _te) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if ETH_SOLIDITY |
|
|
static string getFunctionHashes(dev::solidity::CompilerStack const& _compiler, string const& _contractName) |
|
|
static string getFunctionHashes(dev::solidity::CompilerStack const& _compiler, string const& _contractName) |
|
|
{ |
|
|
{ |
|
|
string ret = ""; |
|
|
string ret = ""; |
|
@ -182,6 +183,7 @@ static string getFunctionHashes(dev::solidity::CompilerStack const& _compiler, s |
|
|
} |
|
|
} |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
static tuple<vector<string>, bytes, string> userInputToCode(string const& _user, bool _opt) |
|
|
static tuple<vector<string>, bytes, string> userInputToCode(string const& _user, bool _opt) |
|
|
{ |
|
|
{ |
|
@ -197,6 +199,7 @@ static tuple<vector<string>, bytes, string> userInputToCode(string const& _user, |
|
|
boost::replace_all_copy(u, " ", ""); |
|
|
boost::replace_all_copy(u, " ", ""); |
|
|
data = fromHex(u); |
|
|
data = fromHex(u); |
|
|
} |
|
|
} |
|
|
|
|
|
#if ETH_SOLIDITY |
|
|
else if (sourceIsSolidity(_user)) |
|
|
else if (sourceIsSolidity(_user)) |
|
|
{ |
|
|
{ |
|
|
dev::solidity::CompilerStack compiler(true); |
|
|
dev::solidity::CompilerStack compiler(true); |
|
@ -220,6 +223,7 @@ static tuple<vector<string>, bytes, string> userInputToCode(string const& _user, |
|
|
errors.push_back("Solidity: Uncaught exception"); |
|
|
errors.push_back("Solidity: Uncaught exception"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
#endif |
|
|
#if ETH_SERPENT |
|
|
#if ETH_SERPENT |
|
|
else if (sourceIsSerpent(_user)) |
|
|
else if (sourceIsSerpent(_user)) |
|
|
{ |
|
|
{ |
|
@ -394,6 +398,7 @@ void Transact::on_send_clicked() |
|
|
// If execution is a contract creation, add Natspec to
|
|
|
// If execution is a contract creation, add Natspec to
|
|
|
// a local Natspec LEVELDB
|
|
|
// a local Natspec LEVELDB
|
|
|
ethereum()->submitTransaction(s, value(), m_data, ui->gas->value(), gasPrice()); |
|
|
ethereum()->submitTransaction(s, value(), m_data, ui->gas->value(), gasPrice()); |
|
|
|
|
|
#if ETH_SOLIDITY |
|
|
string src = ui->data->toPlainText().toStdString(); |
|
|
string src = ui->data->toPlainText().toStdString(); |
|
|
if (sourceIsSolidity(src)) |
|
|
if (sourceIsSolidity(src)) |
|
|
try |
|
|
try |
|
@ -407,6 +412,7 @@ void Transact::on_send_clicked() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
catch (...) {} |
|
|
catch (...) {} |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
ethereum()->submitTransaction(s, value(), m_context->fromString(ui->destination->currentText()), m_data, ui->gas->value(), gasPrice()); |
|
|
ethereum()->submitTransaction(s, value(), m_context->fromString(ui->destination->currentText()), m_data, ui->gas->value(), gasPrice()); |
|
|