Parameterised contracts #199
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: UlfNorell
To make contract inheritance (#198) more useful it might be nice to support parameterised contracts:
Created by: nikita-fuchs
If it was decided to open the pandorra's box of inheritance, then we should add this, certainly. I like this syntax, but what would the deployment look like ? The parameters I pass during deployment are meant for the inheriting contract's init function. The uncool way to solve this would be something like
basically initializing the parants in the children's init functions with data we pass to them during deployment.
Created by: UlfNorell
You would not be allowed to deploy a parameterised contract, you'd have to instantiate it first. This could be done by a tool though:
vs
for paramsCreated by: radrow
Will arguments for
init
still make sense when this comes in?Created by: UlfNorell
Yes