aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-04-20 15:33:02 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-04-20 15:33:02 +0800
commit4d103ccef11168c24c7aca9fea34cbed21340df3 (patch)
tree9affcf66636a1892a6d165810128352f28bd42f5 /TestHelper.cpp
parent4a6a667a587b571c9e563c59dabbc855d1b3ea20 (diff)
parent71012a83e86dac3a899780219a78f18acd1708c5 (diff)
downloaddexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar.gz
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar.bz2
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar.lz
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar.xz
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.tar.zst
dexon-solidity-4d103ccef11168c24c7aca9fea34cbed21340df3.zip
xMerge remote-tracking branch 'upstream/develop' into JSON_testContract
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r--TestHelper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 92a8258a..ed844e96 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -123,7 +123,7 @@ json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o)
{
static const set<string> hashes {"bloom" , "coinbase", "hash", "mixHash", "parentHash", "receiptTrie",
"stateRoot", "transactionsTrie", "uncleHash", "currentCoinbase",
- "previousHash", "to", "address", "caller", "origin", "secretKey"};
+ "previousHash", "to", "address", "caller", "origin", "secretKey", "data"};
for (auto& i: _o)
{
@@ -140,7 +140,7 @@ json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o)
str = value.get_str();
else continue;
- _o[key] = (str.substr(0, 2) == "0x") ? str : "0x" + toHex(toCompactBigEndian(toInt(str)));
+ _o[key] = (str.substr(0, 2) == "0x") ? str : "0x" + toHex(toCompactBigEndian(toInt(str), 1));
}
return _o;
}
@@ -363,8 +363,8 @@ json_spirit::mObject fillJsonWithState(State _state)
for (auto const& a: _state.addresses())
{
json_spirit::mObject o;
- o["balance"] = "0x" + toHex(toCompactBigEndian(_state.balance(a.first)));
- o["nonce"] = "0x" + toHex(toCompactBigEndian(_state.transactionsFrom(a.first)));
+ o["balance"] = "0x" + toHex(toCompactBigEndian(_state.balance(a.first), 1));
+ o["nonce"] = "0x" + toHex(toCompactBigEndian(_state.transactionsFrom(a.first), 1));
{
json_spirit::mObject store;
for (auto const& s: _state.storage(a.first))