Closed anton-trunov closed 3 days ago
The following contract should fail with a var-scope error:
contract Foo { storageReserve: Int; init() { self.storageReserve = ton("0.05"); } }
because storageReserve is a virtual constant defined in BaseTrait. So it should not be reassignable.
storageReserve
BaseTrait
The intended meaning of the above contract is like so:
contract Foo { override const storageReserve: Int = ton("0.05"); ... }
(which is documented here: https://docs.tact-lang.org/ref/core-base#self-storagereserve)
Based on a report by @pantemon
The following contract should fail with a var-scope error:
because
storageReserve
is a virtual constant defined inBaseTrait
. So it should not be reassignable.The intended meaning of the above contract is like so:
(which is documented here: https://docs.tact-lang.org/ref/core-base#self-storagereserve)
Based on a report by @pantemon