aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-03 01:58:50 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-01-23 22:25:13 +0800
commit567139486f45f69b22beb846fde7c9b27e1ebce0 (patch)
treef64b576fa26614302f6430a5a5689ef0a7397c85 /test/libsolidity/SolidityEndToEndTest.cpp
parent846f7dc3ea6591b34deb3e6738292ffd87c06ed3 (diff)
downloaddexon-solidity-567139486f45f69b22beb846fde7c9b27e1ebce0.tar.gz
dexon-solidity-567139486f45f69b22beb846fde7c9b27e1ebce0.tar.zst
dexon-solidity-567139486f45f69b22beb846fde7c9b27e1ebce0.zip
test: somehow log counting system has changed
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 81cedfb0..c29ae6fc 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -2825,18 +2825,18 @@ BOOST_AUTO_TEST_CASE(events_with_same_name)
BOOST_CHECK_EQUAL(m_logs[0].topics[0], dev::keccak256(string("Deposit()")));
BOOST_CHECK(callContractFunction("deposit(address)", c_loggedAddress) == encodeArgs(u256(1)));
- BOOST_REQUIRE_EQUAL(m_logs.size(), 2);
- BOOST_CHECK_EQUAL(m_logs[1].address, m_contractAddress);
- BOOST_CHECK(m_logs[1].data == encodeArgs(c_loggedAddress));
- BOOST_REQUIRE_EQUAL(m_logs[1].topics.size(), 1);
- BOOST_CHECK_EQUAL(m_logs[1].topics[0], dev::keccak256(string("Deposit(address)")));
+ BOOST_REQUIRE_EQUAL(m_logs.size(), 1);
+ BOOST_CHECK_EQUAL(m_logs[0].address, m_contractAddress);
+ BOOST_CHECK(m_logs[0].data == encodeArgs(c_loggedAddress));
+ BOOST_REQUIRE_EQUAL(m_logs[0].topics.size(), 1);
+ BOOST_CHECK_EQUAL(m_logs[0].topics[0], dev::keccak256(string("Deposit(address)")));
BOOST_CHECK(callContractFunction("deposit(address,uint256)", c_loggedAddress, u256(100)) == encodeArgs(u256(1)));
- BOOST_REQUIRE_EQUAL(m_logs.size(), 3);
- BOOST_CHECK_EQUAL(m_logs[2].address, m_contractAddress);
- BOOST_CHECK(m_logs[2].data == encodeArgs(c_loggedAddress, 100));
- BOOST_REQUIRE_EQUAL(m_logs[2].topics.size(), 1);
- BOOST_CHECK_EQUAL(m_logs[2].topics[0], dev::keccak256(string("Deposit(address,uint256)")));
+ BOOST_REQUIRE_EQUAL(m_logs.size(), 1);
+ BOOST_CHECK_EQUAL(m_logs[0].address, m_contractAddress);
+ BOOST_CHECK(m_logs[0].data == encodeArgs(c_loggedAddress, 100));
+ BOOST_REQUIRE_EQUAL(m_logs[0].topics.size(), 1);
+ BOOST_CHECK_EQUAL(m_logs[0].topics[0], dev::keccak256(string("Deposit(address,uint256)")));
}
BOOST_AUTO_TEST_CASE(event_anonymous)