compiler: handle ledger/management enums better for debug
Fix scAndVMInteropTypeFromExpr(), these types are not structures at all.
This commit is contained in:
parent
0f61a13006
commit
d7fafea328
1 changed files with 4 additions and 0 deletions
|
@ -274,6 +274,10 @@ func scAndVMInteropTypeFromExpr(named *types.Named, isPointer bool) (smartcontra
|
|||
pkg := named.Obj().Pkg().Name()
|
||||
switch pkg {
|
||||
case "ledger", "management":
|
||||
switch name {
|
||||
case "ParameterType", "SignerScope", "WitnessAction", "WitnessConditionType", "VMState":
|
||||
return smartcontract.IntegerType, stackitem.IntegerT, binding.Override{TypeName: "int"}, nil
|
||||
}
|
||||
// Block, Transaction, Contract.
|
||||
typeName := pkg + "." + name
|
||||
et := &binding.ExtendedType{Base: smartcontract.ArrayType, Name: typeName}
|
||||
|
|
Loading…
Reference in a new issue