Adds support for constructor arguments in isoltest.

This commit is contained in:
Erik Kundt
2019-05-15 12:01:14 +02:00
parent 37375b4271
commit 94597ad9ae
4 changed files with 38 additions and 11 deletions
@@ -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