mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
compiler: Contract type is in the management package
This commit is contained in:
parent
b9d20b32e9
commit
0f61a13006
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue