compiler: implement Ledger contract wrapper

This commit is contained in:
Evgeniy Stratonikov 2021-02-08 11:10:25 +03:00
parent 7bee28b81e
commit 69c011b3e7
6 changed files with 102 additions and 29 deletions

View file

@ -239,7 +239,7 @@ func scAndVMInteropTypeFromExpr(named *types.Named) (smartcontract.ParamType, st
name := named.Obj().Name()
pkg := named.Obj().Pkg().Name()
switch pkg {
case "runtime", "contract":
case "ledger", "contract":
return smartcontract.ArrayType, stackitem.ArrayT // Block, Transaction, Contract
case "interop":
if name != "Interface" {