Also provide value and format slightly differently.

This commit is contained in:
chriseth 2016-12-06 23:52:39 +01:00
parent 86953ca3e4
commit d1c71b7826

View File

@ -57,9 +57,12 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
if (m_showMessages) if (m_showMessages)
{ {
if (_isCreation) if (_isCreation)
cout << "CREATE " << toHex(m_sender) << ": " << toHex(_data) << endl; cout << "CREATE " << m_sender.hex() << ":" << endl;
else else
cout << "CALL " << toHex(m_sender) << " -> " << toHex(m_contractAddress) << ": " << toHex(_data) << endl; cout << "CALL " << m_sender.hex() << " -> " << m_contractAddress.hex() << ":" << endl;
if (_value > 0)
cout << " value: " << _value << endl;
cout << " in: " << toHex(_data) << endl;
} }
RPCSession::TransactionData d; RPCSession::TransactionData d;
d.data = "0x" + toHex(_data); d.data = "0x" + toHex(_data);
@ -88,7 +91,7 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
} }
if (m_showMessages) if (m_showMessages)
cout << " -> " << toHex(m_output) << endl; cout << " out: " << toHex(m_output) << endl;
m_gasUsed = u256(receipt.gasUsed); m_gasUsed = u256(receipt.gasUsed);
m_logs.clear(); m_logs.clear();