Skip to content

[#470] Added `PAIR n` instruction

Diogo Castro requested to merge diogo/#470-new-instructions into master

Description

Problem: the edo protocol introduced many instructions for handling right-combed pairs, such as PAIR n, which takes n items off the stack and pushes a right-combed pair.

Solution: Add support for this instruction, including being able to typecheck it, interpret it, and parse it from the micheline/binary/michelson formats.

Related issue(s)

Resolves part of #470 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Diogo Castro

Merge request reports