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
It hides the details of ABI decoding, which the programmer does not care about
It makes the ABI more clear because the types in deploy match the types in the ABI
The deployment call types actually are not part of the ABI anyway and they are an implementation detail for the contract users (this is a separate issue)
Work plan
Call deploy if exists
It shall be a compiler error if a the contract has a deploy method and any class has an @Instantiatable variable
The text was updated successfully, but these errors were encountered:
@Initializable allows you to set values only for static variables. Static variables have an extremely narrow use case and and probably none of those use cases overlap with setting the static variables at deploy time.
The only use case of @Initializable therefore is spells and counterfactuals.
If a class has a method named
deploy
and this method is annotated Callable then it should be called at deploy time.This will remove the need for accessing
Blockchain.getData()
directly, like this:Instead the type safe alternative is:
Benefits:
deploy
match the types in the ABIWork plan
deploy
method and any class has an@Instantiatable
variableThe text was updated successfully, but these errors were encountered: