From d7da8b1aaa3840aa5aa6cfbe4f5635225bfb14da Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 5 Nov 2014 14:28:29 +0000 Subject: [PATCH] Documentation for Transaction. --- crypto.cpp | 4 ++-- vm.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto.cpp b/crypto.cpp index 2f5314421..cc35670af 100644 --- a/crypto.cpp +++ b/crypto.cpp @@ -397,8 +397,8 @@ int cryptoTest() auto msg = t.rlp(false); cout << "TX w/o SIG: " << RLP(msg) << endl; - cout << "RLP(TX w/o SIG): " << toHex(t.rlpString(false)) << endl; - std::string hmsg = sha3(t.rlpString(false), false); + cout << "RLP(TX w/o SIG): " << toHex(t.rlp(false)) << endl; + std::string hmsg = sha3(t.rlp(false), false); cout << "SHA256(RLP(TX w/o SIG)): 0x" << toHex(hmsg) << endl; bytes privkey = sha3Bytes("123"); diff --git a/vm.cpp b/vm.cpp index 8344c0c5f..6ecfa8f68 100644 --- a/vm.cpp +++ b/vm.cpp @@ -375,7 +375,7 @@ mArray FakeExtVM::exportCallCreates() for (Transaction const& tx: callcreates) { mObject o; - o["destination"] = tx.type() == Transaction::ContractCreation ? "" : toString(tx.receiveAddress()); + o["destination"] = tx.isCreation() ? "" : toString(tx.receiveAddress()); push(o, "gasLimit", tx.gas()); push(o, "value", tx.value()); o["data"] = "0x" + toHex(tx.data());