[go: up one dir, main page]

Draft: Added global counter instructions in Michelson - internal operations

Context

Added INCREASE_COUNTER and GET_COUNTER instructions in Michelson.

  • INCREASE_COUNTER adds an operation on the top of the stack, corresponding with the increase operation of the global counter
  • GET_COUNTER adds on top of the stack the int value of the global counter. Note that in this approach, GET_COUNTER won't takle into account the INCREASE_COUNTER operations since the operation's are not executed until the contract is finished executing.

Manually testing the MR

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports

Loading