changed the test so constructor will have input parameters

This commit is contained in:
Liana Husikyan 2015-04-22 18:53:58 +02:00
parent 5b07f11330
commit 21ced7e9c5

View File

@ -499,13 +499,26 @@ BOOST_AUTO_TEST_CASE(constructor_abi)
{ {
char const* sourceCode = R"( char const* sourceCode = R"(
contract test { contract test {
function test() { function test(uint param1, test param2, bool param3) {}
} }
})"; )";
char const* interface = R"([ char const* interface = R"([
{ {
"inputs" : [], "inputs": [
{
"name": "param1",
"type": "uint256"
},
{
"name": "param2",
"type": "address"
},
{
"name": "param3",
"type": "bool"
}
],
"type": "constructor" "type": "constructor"
} }
])"; ])";