mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds support for constructor arguments in isoltest.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
contract C {
|
||||
uint public state = 0;
|
||||
constructor(uint _state) public {
|
||||
state = _state;
|
||||
}
|
||||
function f() payable public returns (uint) {
|
||||
return 2;
|
||||
}
|
||||
@@ -31,6 +35,8 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// constructor(): 3 ->
|
||||
// state() -> 3
|
||||
// _() -> FAILURE
|
||||
// f() -> 2
|
||||
// f(), 1 ether -> 2
|
||||
|
||||
Reference in New Issue
Block a user