aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-11 20:59:54 +0800
committerLianaHus <liana@ethdev.com>2015-09-11 20:59:54 +0800
commitf5fc119dc80e6eb83bd145121ad13869ba246d76 (patch)
treebdce24dc0f9ace2db2416089c8fe818a08e7a09d /test
parent8355c0ad404fbbe3d21b4bd2b062a9881c08162a (diff)
downloaddexon-solidity-f5fc119dc80e6eb83bd145121ad13869ba246d76.tar.gz
dexon-solidity-f5fc119dc80e6eb83bd145121ad13869ba246d76.tar.zst
dexon-solidity-f5fc119dc80e6eb83bd145121ad13869ba246d76.zip
added test
Conflicts: test/libsolidity/SolidityEndToEndTest.cpp
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index aa423330..5fcb5ca3 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -5230,6 +5230,20 @@ BOOST_AUTO_TEST_CASE(storage_string_as_mapping_key_without_variable)
BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(2)));
}
+BOOST_AUTO_TEST_CASE(event_more_than_four_indexed_arguments)
+{
+ char const* sourceCode = R"(
+ contract ClientReceipt {
+ event Deposit(uint indexed _var0, uint indexed _var1, uint indexed _var2, uint indexed _var3, uint indexed _var4, uint indexed _var5);
+ function deposit() {
+ Deposit(0, 1, 2, 3, 4, 5);
+ }
+ }
+ )";
+ compileAndRun(sourceCode);
+ compileRequireThrow<TypeError>(sourceCode);
+}
+
BOOST_AUTO_TEST_SUITE_END()
}