diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-01-13 22:47:36 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-01-13 22:47:36 +0800 |
commit | 108388c4401ce16609bfc23c4dcb6b3e09638e02 (patch) | |
tree | 6489941b4c772ef8c80f0310d8c7a0bda5d9c966 /TestHelper.cpp | |
parent | 22d738b9955389a5cea73e60fde09b9dc681c91d (diff) | |
download | dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar.gz dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar.bz2 dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar.lz dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar.xz dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.tar.zst dexon-solidity-108388c4401ce16609bfc23c4dcb6b3e09638e02.zip |
fix callcreates imoport
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ff330d60..355a5080 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -350,6 +350,19 @@ void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs) } } +void checkCallCreates(eth::Transactions _resultCallCreates, eth::Transactions _expectedCallCreates) +{ + BOOST_REQUIRE_EQUAL(_resultCallCreates.size(), _expectedCallCreates.size()); + + for (size_t i = 0; i < _resultCallCreates.size(); ++i) + { + BOOST_CHECK(_resultCallCreates[i].data() == _expectedCallCreates[i].data()); + BOOST_CHECK(_resultCallCreates[i].receiveAddress() == _expectedCallCreates[i].receiveAddress()); + BOOST_CHECK(_resultCallCreates[i].gas() == _expectedCallCreates[i].gas()); + BOOST_CHECK(_resultCallCreates[i].value() == _expectedCallCreates[i].value()); + } +} + std::string getTestPath() { string testPath; |