compiler: Contract type is in the management package

This commit is contained in:
Roman Khimov 2022-11-25 10:35:13 +03:00
parent b9d20b32e9
commit 0f61a13006

View file

@ -273,7 +273,7 @@ func scAndVMInteropTypeFromExpr(named *types.Named, isPointer bool) (smartcontra
name := named.Obj().Name() name := named.Obj().Name()
pkg := named.Obj().Pkg().Name() pkg := named.Obj().Pkg().Name()
switch pkg { switch pkg {
case "ledger", "contract": case "ledger", "management":
// Block, Transaction, Contract. // Block, Transaction, Contract.
typeName := pkg + "." + name typeName := pkg + "." + name
et := &binding.ExtendedType{Base: smartcontract.ArrayType, Name: typeName} et := &binding.ExtendedType{Base: smartcontract.ArrayType, Name: typeName}