IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
39 stars 14 forks source link

Add witness and redeemer to view #861

Closed palas closed 3 weeks ago

palas commented 1 month ago

Changelog

- description: |
    Modify `transaction view` to show what inputs redeemers refer to.
# uncomment types applicable to the change:
  type:
  - feature        # introduces a new feature

Context

https://github.com/IntersectMBO/cardano-cli/pull/664 added redeemers to the output of cardano-cli transaction view but it is difficult to know which one corresponds to which when there are several. This PR addresses this by showing this information paired with each redeemer.

How to trust this PR

Ensure that the new structure makes sense, that it looks good in the updated tests. And I am not so confident about how what the indexes correspond to, so probably verify that

Checklist