mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
replace BOOST_REQUIRE with assert, because it is used outside the boost test framework
This commit is contained in:
parent
ebe54acb77
commit
a00d05e2bb
8
vm.cpp
8
vm.cpp
@ -232,10 +232,10 @@ void FakeExtVM::importCallCreates(mArray& _callcreates)
|
||||
for (mValue& v: _callcreates)
|
||||
{
|
||||
auto tx = v.get_obj();
|
||||
BOOST_REQUIRE(tx.count("data") > 0);
|
||||
BOOST_REQUIRE(tx.count("value") > 0);
|
||||
BOOST_REQUIRE(tx.count("destination") > 0);
|
||||
BOOST_REQUIRE(tx.count("gasLimit") > 0);
|
||||
assert(tx.count("data") > 0);
|
||||
assert(tx.count("value") > 0);
|
||||
assert(tx.count("destination") > 0);
|
||||
assert(tx.count("gasLimit") > 0);
|
||||
Transaction t = tx["destination"].get_str().empty() ?
|
||||
Transaction(toInt(tx["value"]), 0, toInt(tx["gasLimit"]), data.toBytes()) :
|
||||
Transaction(toInt(tx["value"]), 0, toInt(tx["gasLimit"]), Address(tx["destination"].get_str()), data.toBytes());
|
||||
|
Loading…
Reference in New Issue
Block a user