Browse Source

fixed contract creation transaction

cl-refactor
arkpar 10 years ago
parent
commit
73d7430c73
  1. 4
      libweb3jsonrpc/WebThreeStubServerBase.cpp

4
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -701,10 +701,10 @@ std::string WebThreeStubServerBase::eth_transact(Json::Value const& _json)
{
std::string ret;
TransactionSkeleton t = toTransaction(_json);
if (t.creation)
ret = right160(sha3(rlpList(t.from, client()->countAt(t.from))));;
if (!t.from)
t.from = m_accounts->getDefaultTransactAccount();
if (t.creation)
ret = right160(sha3(rlpList(t.from, client()->countAt(t.from))));;
if (!t.gasPrice)
t.gasPrice = 10 * dev::eth::szabo;
if (!t.gas)

Loading…
Cancel
Save