diff options
author | Gav Wood <i@gavwood.com> | 2014-10-27 21:13:16 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-10-27 21:13:16 +0800 |
commit | ed7a56cc16ad28601d2d6546615a1d1feb5ce527 (patch) | |
tree | 08c190587c8203de0a33004ab9f916c72989d080 /crypto.cpp | |
parent | 08c45c85b49edad8451a03df4a31363f216db97c (diff) | |
download | dexon-solidity-ed7a56cc16ad28601d2d6546615a1d1feb5ce527.tar.gz dexon-solidity-ed7a56cc16ad28601d2d6546615a1d1feb5ce527.tar.zst dexon-solidity-ed7a56cc16ad28601d2d6546615a1d1feb5ce527.zip |
PoC-7: Reversion of 0-hashes, empty-list hashes and sha3('') -> ''
Diffstat (limited to 'crypto.cpp')
-rw-r--r-- | crypto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -341,6 +341,7 @@ BOOST_AUTO_TEST_CASE(eth_keypairs) { eth::Transaction t; t.nonce = 0; + t.type = eth::Transaction::MessageCall; t.receiveAddress = h160(fromHex("944400f4b88ac9589a0f17ed4671da26bddb668b")); t.value = 1000; auto rlp = t.rlp(false); @@ -369,6 +370,7 @@ int cryptoTest() { eth::Transaction t; t.nonce = 0; + t.type = eth::Transaction::MessageCall; t.receiveAddress = h160(fromHex("944400f4b88ac9589a0f17ed4671da26bddb668b")); t.value = 1000; auto rlp = t.rlp(false); @@ -397,6 +399,7 @@ int cryptoTest() Transaction t; t.nonce = 0; t.value = 1; // 1 wei. + t.type = eth::Transaction::MessageCall; t.receiveAddress = toAddress(sha3("123")); bytes sig64 = toBigEndian(t.vrs.r) + toBigEndian(t.vrs.s); |