aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-12-07 06:52:39 +0800
committerchriseth <c@ethdev.com>2016-12-07 06:52:39 +0800
commitd1c71b78268e56ad0c98c8c71325c8a7b399b604 (patch)
tree24c299be195f8acb686609e8901b0a1eec41c4f4
parent86953ca3e48bc9620e8d34ae965ba1fa65aaf4eb (diff)
downloaddexon-solidity-d1c71b78268e56ad0c98c8c71325c8a7b399b604.tar.gz
dexon-solidity-d1c71b78268e56ad0c98c8c71325c8a7b399b604.tar.zst
dexon-solidity-d1c71b78268e56ad0c98c8c71325c8a7b399b604.zip
Also provide value and format slightly differently.
-rw-r--r--test/ExecutionFramework.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/ExecutionFramework.cpp b/test/ExecutionFramework.cpp
index 9d6d5675..9e3ecac3 100644
--- a/test/ExecutionFramework.cpp
+++ b/test/ExecutionFramework.cpp
@@ -57,9 +57,12 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
if (m_showMessages)
{
if (_isCreation)
- cout << "CREATE " << toHex(m_sender) << ": " << toHex(_data) << endl;
+ cout << "CREATE " << m_sender.hex() << ":" << endl;
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;
d.data = "0x" + toHex(_data);
@@ -88,7 +91,7 @@ void ExecutionFramework::sendMessage(bytes const& _data, bool _isCreation, u256
}
if (m_showMessages)
- cout << " -> " << toHex(m_output) << endl;
+ cout << " out: " << toHex(m_output) << endl;
m_gasUsed = u256(receipt.gasUsed);
m_logs.clear();