Skip to content

New API for NeoContract: System.Runtime.GetInvocationCounter #307

@erikzhang

Description

@erikzhang

The invocation counter records the number of times each contract was invoked in current InvocationTransaction.

Consider that we have an InvocationTransaction with the following Script:

APPCALL <A>
APPCALL <B>
APPCALL <B>
APPCALL <C>

If we call System.Runtime.GetInvocationCounter in each contract, we will get:

  • 1 from APPCALL <A>
  • 1 from the first APPCALL <B>
  • 2 from the second APPCALL <B>
  • 1 from APPCALL <C>

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions