Skip to content

Add AllowCall call flag to VerifyWitness for native contracts #2142

@AnnaShaleva

Description

@AnnaShaleva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions