mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style
This commit is contained in:
parent
dcc0361c7c
commit
70a1f73047
@ -293,8 +293,8 @@ void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs)
|
|||||||
|
|
||||||
for (size_t i = 0; i < _resultLogs.size(); ++i)
|
for (size_t i = 0; i < _resultLogs.size(); ++i)
|
||||||
{
|
{
|
||||||
BOOST_CHECK(_resultLogs[i].address == _expectedLogs[i].address);
|
BOOST_CHECK_EQUAL(_resultLogs[i].address, _expectedLogs[i].address);
|
||||||
BOOST_CHECK(_resultLogs[i].topics == _expectedLogs[i].topics);
|
BOOST_CHECK_EQUAL(_resultLogs[i].topics, _expectedLogs[i].topics);
|
||||||
BOOST_CHECK(_resultLogs[i].data == _expectedLogs[i].data);
|
BOOST_CHECK(_resultLogs[i].data == _expectedLogs[i].data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
vm.cpp
2
vm.cpp
@ -149,9 +149,7 @@ void FakeExtVM::importLog(mObject& _o)
|
|||||||
LogEntry log;
|
LogEntry log;
|
||||||
log.address = Address(o["address"].get_str());
|
log.address = Address(o["address"].get_str());
|
||||||
for (auto const& t: o["topics"].get_array())
|
for (auto const& t: o["topics"].get_array())
|
||||||
{
|
|
||||||
log.topics.insert(h256(t.get_str()));
|
log.topics.insert(h256(t.get_str()));
|
||||||
}
|
|
||||||
log.data = importData(o);
|
log.data = importData(o);
|
||||||
sub.logs.push_back(log);
|
sub.logs.push_back(log);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user