mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
changed the test so constructor will have input parameters
This commit is contained in:
parent
5b07f11330
commit
21ced7e9c5
@ -499,14 +499,27 @@ 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": [
|
||||||
"type" : "constructor"
|
{
|
||||||
|
"name": "param1",
|
||||||
|
"type": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "param2",
|
||||||
|
"type": "address"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "param3",
|
||||||
|
"type": "bool"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "constructor"
|
||||||
}
|
}
|
||||||
])";
|
])";
|
||||||
checkInterface(sourceCode, interface);
|
checkInterface(sourceCode, interface);
|
||||||
|
Loading…
Reference in New Issue
Block a user