ethereum / act

Smart contract specification language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typechecker: Issue type errors for invalid constructor preconditions

d-xo opened this issue · comments

commented

The following spec is accepted by the typechecker even though it makes no sense (there is no prestate when the constructor is running):

constructor of C
interface constructor()

iff

    x == 7

creates

    uint x := 2

We should modify the typechecker to reject specs containing storage references in constructor precondition blocks.