Picturing following contract:
contract Test =
record state =
{
test: int
}
entrypoint init() =
{ test = 2 }
stateful entrypoint set() =
state{test = 3}
entrypoint get() =
state.test
As the state
record is reserved anyway, couldn’t we qualify what set()
is doing an attempted state update and throw an error for missing the use of the put()
function ? Or is there some side case this would technically be a false-hit for ? @radrow.chain @hanssv.chain @ulfnorell