mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
All fields Hex: style
This commit is contained in:
parent
7d44af8b88
commit
6e97308f27
@ -121,18 +121,18 @@ ImportTest::ImportTest(json_spirit::mObject& _o, bool isFiller):
|
|||||||
|
|
||||||
json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o)
|
json_spirit::mObject& ImportTest::makeAllFieldsHex(json_spirit::mObject& _o)
|
||||||
{
|
{
|
||||||
static const std::string hashes[] = {"bloom" , "coinbase", "hash", "mixHash", "parentHash", "receiptTrie",
|
static const set<string> hashes {"bloom" , "coinbase", "hash", "mixHash", "parentHash", "receiptTrie",
|
||||||
"stateRoot", "transactionsTrie", "uncleHash", "currentCoinbase",
|
"stateRoot", "transactionsTrie", "uncleHash", "currentCoinbase",
|
||||||
"previousHash", "to", "address", "caller", "origin", "secretKey"};
|
"previousHash", "to", "address", "caller", "origin", "secretKey"};
|
||||||
|
|
||||||
for (json_spirit::mObject::iterator it = _o.begin(); it != _o.end(); it++)
|
for (auto& i: _o)
|
||||||
{
|
{
|
||||||
std::string key = (*it).first;
|
std::string key = i.first;
|
||||||
if (std::find(std::begin(hashes), std::end(hashes), key) != std::end(hashes))
|
if (hashes.count(key))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::string str;
|
std::string str;
|
||||||
json_spirit::mValue value = (*it).second;
|
json_spirit::mValue value = i.second;
|
||||||
|
|
||||||
if (value.type() == json_spirit::int_type)
|
if (value.type() == json_spirit::int_type)
|
||||||
str = toString(value.get_int());
|
str = toString(value.get_int());
|
||||||
|
@ -176,7 +176,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"SenderTest" : {
|
"SenderTest" : {
|
||||||
"//" : "sender 0f65fe9276bc9a24ae7083ae28e2660ef72df99e",
|
"senderExpect" : "sender 0f65fe9276bc9a24ae7083ae28e2660ef72df99e",
|
||||||
"expect" : "valid",
|
"expect" : "valid",
|
||||||
"transaction" :
|
"transaction" :
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user