From bf3fbae3979d2d8d3efacb7f50abf4eac7ab7412 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 13 Dec 2014 22:44:28 +0100 Subject: [PATCH] Demonstration readability improved. Clear how the State diff works. --- exp/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exp/main.cpp b/exp/main.cpp index aee6e6efd..3c4a1b207 100644 --- a/exp/main.cpp +++ b/exp/main.cpp @@ -85,14 +85,14 @@ int main() s.addBalance(u.address(), 1 * ether); Address c = s.newContract(1000 * ether, compileLLL("(suicide (caller))")); s.commit(); - cnote << s.rootHash(); State before = s; - cnote << s; + cnote << "State before transaction: " << before; Transaction t(0, 10000, 10000, c, bytes(), 0, u.secret()); + cnote << "Transaction: " << t; cnote << s.balance(c); s.execute(t.rlp()); + cnote << "State after transaction: " << s; cnote << before.diff(s); - cnote << s; } #endif