aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-02-16 18:04:05 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-02-16 18:04:05 +0800
commit968564f21dc547105a4814e27c7715c05a75ad20 (patch)
treefc8f6fed094e39901629156cc9c6ec28226189b7 /TestHelper.cpp
parent1c10c6a547aab24f1c96affcca5313f43fc752c6 (diff)
downloaddexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar.gz
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar.bz2
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar.lz
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar.xz
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.tar.zst
dexon-solidity-968564f21dc547105a4814e27c7715c05a75ad20.zip
extra data fix
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r--TestHelper.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 1e6b97f0..ff6939a5 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -510,16 +510,16 @@ RLPStream createRLPStreamFromTransactionFields(json_spirit::mObject& _tObj)
RLPStream rlpStream;
rlpStream.appendList(_tObj.size());
- if (_tObj.count("nonce") > 0)
+ if (_tObj.count("nonce"))
rlpStream << bigint(_tObj["nonce"].get_str());
- if (_tObj.count("gasPrice") > 0)
+ if (_tObj.count("gasPrice"))
rlpStream << bigint(_tObj["gasPrice"].get_str());
- if (_tObj.count("gasLimit") > 0)
+ if (_tObj.count("gasLimit"))
rlpStream << bigint(_tObj["gasLimit"].get_str());
- if (_tObj.count("to") > 0)
+ if (_tObj.count("to"))
{
if (_tObj["to"].get_str().empty())
rlpStream << "";
@@ -527,22 +527,22 @@ RLPStream createRLPStreamFromTransactionFields(json_spirit::mObject& _tObj)
rlpStream << importByteArray(_tObj["to"].get_str());
}
- if (_tObj.count("value") > 0)
+ if (_tObj.count("value"))
rlpStream << bigint(_tObj["value"].get_str());
- if (_tObj.count("data") > 0)
+ if (_tObj.count("data"))
rlpStream << importData(_tObj);
- if (_tObj.count("v") > 0)
+ if (_tObj.count("v"))
rlpStream << bigint(_tObj["v"].get_str());
- if (_tObj.count("r") > 0)
+ if (_tObj.count("r"))
rlpStream << bigint(_tObj["r"].get_str());
- if (_tObj.count("s") > 0)
+ if (_tObj.count("s"))
rlpStream << bigint(_tObj["s"].get_str());
- if (_tObj.count("extrafield") > 0)
+ if (_tObj.count("extrafield"))
rlpStream << bigint(_tObj["extrafield"].get_str());
return rlpStream;