diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-01-14 01:00:00 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-01-14 01:00:00 +0800 |
commit | a00d05e2bb93a21e589360b7672f62c9bc086c53 (patch) | |
tree | 189bdc0d3762e6319605387a2c9e6c43a9d6567d /vm.cpp | |
parent | ebe54acb77bf495cd9c61b3b0c43d9906b8e1fef (diff) | |
download | dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar.gz dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar.bz2 dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar.lz dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar.xz dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.tar.zst dexon-solidity-a00d05e2bb93a21e589360b7672f62c9bc086c53.zip |
replace BOOST_REQUIRE with assert, because it is used outside the boost test framework
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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()); |