TVM-Solidity-Compiler
TVM-Solidity-Compiler copied to clipboard
Proposal: Add the ability to attach stateinit when calling contract interface
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 }();
ability to specify stateinit with different data types will allow to optimize the code for building a message cell
Sounds reasonable. Thank you!
Thank you! Added to 0.75 release https://github.com/everx-labs/TVM-Solidity-Compiler/blob/master/API.md#external-function-calls