Fix #324: bug when compiling default init in the presence of child contracts

This commit is contained in:
Ulf Norell
2021-07-05 09:29:43 +02:00
parent 1975ccf804
commit d07b321b25
3 changed files with 12 additions and 2 deletions
@@ -0,0 +1,8 @@
contract Identity =
record state = {foo: int, bar: string}
entrypoint init() = {foo = 0, bar = ""}
main contract IdentityService =
stateful entrypoint createNewIdentity() : Identity =
put(())
Chain.create()