core: adjust System.Contract.CallEx interop

Part of #1055
This commit is contained in:
Anna Shaleva 2020-07-15 13:53:24 +03:00
parent 74ffde8367
commit d2f452c240

View file

@ -422,6 +422,9 @@ func contractCallEx(ic *interop.Context, v *vm.VM) error {
method := v.Estack().Pop().Item()
args := v.Estack().Pop().Item()
flags := smartcontract.CallFlag(int32(v.Estack().Pop().BigInt().Int64()))
if flags&^smartcontract.All != 0 {
return errors.New("call flags out of range")
}
return contractCallExInternal(ic, v, h, method, args, flags)
}