forked from TrueCloudLab/neoneo-go
parent
74ffde8367
commit
d2f452c240
1 changed files with 3 additions and 0 deletions
|
@ -422,6 +422,9 @@ func contractCallEx(ic *interop.Context, v *vm.VM) error {
|
||||||
method := v.Estack().Pop().Item()
|
method := v.Estack().Pop().Item()
|
||||||
args := v.Estack().Pop().Item()
|
args := v.Estack().Pop().Item()
|
||||||
flags := smartcontract.CallFlag(int32(v.Estack().Pop().BigInt().Int64()))
|
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)
|
return contractCallExInternal(ic, v, h, method, args, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue