TVM-Solidity-Compiler icon indicating copy to clipboard operation
TVM-Solidity-Compiler copied to clipboard

Proposal: Add the ability to attach stateinit when calling contract interface

Open pyAndr3w opened this issue 1 year ago • 2 comments

Adding stateinit when calling the contract interface will allow you to "deploy" contracts without using a constructor. This will make it possible to create more flexible systems using more blockchain features (in TVM-based blockchains there is no concept of "deploy" as such)

expected syntax:

IContract(address).testFunction{ value: 1 ever, stateInit: cell }();

or

IContract(address).testFunction{ value: 1 ever, stateInit: builder }();

or

IContract(address).testFunction{ value: 1 ever, stateInit: slice }();

pyAndr3w avatar Jun 06 '23 10:06 pyAndr3w