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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user