Describe the bug
#2121 replaced required None call flag by AllowCall flag for Neo.Native.Call syscall. However, the current contract verification scheme assumes that native contract verification script is loaded with ReadStates call flag (see VerifyWitness method). So this change brokes verify method for native contracts because we have ReadStates flag instead of required AllowCall flag.
Expected behavior
No error during native verify method call.
Additional context
The issue may be fixed by adding AllowCall flag to the context callFlags in VerifyWitness method in case if the contract is native.
Describe the bug
#2121 replaced required
Nonecall flag byAllowCallflag forNeo.Native.Callsyscall. However, the current contract verification scheme assumes that native contract verification script is loaded withReadStatescall flag (see VerifyWitness method). So this change brokesverifymethod for native contracts because we haveReadStatesflag instead of requiredAllowCallflag.Expected behavior
No error during native
verifymethod call.Additional context
The issue may be fixed by adding
AllowCallflag to the contextcallFlagsin VerifyWitness method in case if the contract is native.