You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some contracts depend on the notion of time which we model using BLOCKNUMBER variable. E.g. if a contract defines some kind of end-of-life of the contract in its parameters, then it would be unfortunate to deploy a newborn contract which is effectively dead. Contract constraints in this case would looks look something like this
contract Mortal (end_of_life : BNum)
with
let current_time = BLOCKNUMBER in (* this is not the right syntax for this, just an illustration *)
builtin lt current_time end_of_life
=>
Some contracts depend on the notion of time which we model using
BLOCKNUMBER
variable. E.g. if a contract defines some kind of end-of-life of the contract in its parameters, then it would be unfortunate to deploy a newborn contract which is effectively dead. Contract constraints in this case would looks look something like thisSomewhat related to issue #384.
The text was updated successfully, but these errors were encountered: