diff options
author | Gav Wood <g@ethdev.com> | 2015-01-14 18:52:00 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-01-14 18:52:00 +0800 |
commit | e2efcfb8a647cc1fc52cce757db0714958b328fd (patch) | |
tree | b9bcffa1ab6a3afeda5fc4609aac38503c2faaf2 /vm.cpp | |
parent | cf6641c345074c7e3e7cc582726891f774e2996a (diff) | |
parent | 69bd72c6670a2fd3b5268e4ae9ca426b823b738e (diff) | |
download | dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar.gz dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar.bz2 dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar.lz dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar.xz dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.tar.zst dexon-solidity-e2efcfb8a647cc1fc52cce757db0714958b328fd.zip |
Merge pull request #796 from CJentzsch/randomTestEfficiency
Random test efficiency
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"]), fromHex(tx["data"].get_str())) : Transaction(toInt(tx["value"]), 0, toInt(tx["gasLimit"]), Address(tx["destination"].get_str()), fromHex(tx["data"].get_str())); |