Fixed some error messages. Type inference of child contract still does some random shit\n(mistakes arguments with result type)

This commit is contained in:
radrow
2021-04-21 16:21:41 +02:00
parent b13a3a5d53
commit 6a46bb74ab
2 changed files with 49 additions and 29 deletions
+7 -7
View File
@@ -1,9 +1,9 @@
// If you need a quick compiler test — this file is for your playground
contract interface Remote =
entrypoint init : int => void
entrypoint f : int => int
contract Chuj =
type state = bool
// entrypoint init : (int, bool) => void
entrypoint init(x : int, y : bool) = if(x < 0) abort("xD") else true
contract Test =
entrypoint kek(r : Remote) =
Chain.clone(ref=r, 123)
Chain.bytecode_hash(r)
main contract Test =
stateful entrypoint kek() =
Chain.create(value=3, 123, 555) : Chuj