Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertBlockchain gives the Blockchain in reverse order #3165

Closed
t1lde opened this issue May 11, 2021 · 0 comments · Fixed by #3171
Closed

assertBlockchain gives the Blockchain in reverse order #3165

t1lde opened this issue May 11, 2021 · 0 comments · Fixed by #3171
Assignees
Labels

Comments

@t1lde
Copy link

t1lde commented May 11, 2021

Area

[] Plutus Foundation Related to the GHC plugin, Haskell-to-Plutus compiler, on-chain code
[x] Plutus Application Framework Related to the Plutus application backend (PAB), emulator, Plutus libraries
[] Marlowe Related to Marlowe
[] Other Any other topic (Playgrounds, etc.)

Summary

assertBlockchain gives the Blockchain in reverse order, rather than in newest -> oldest order, like most of the other functions which return Blockchain.
It's unclear that this is the case, and you want the newest -> oldest order for functions in Ledger.Blockchain to work.
Ideally this fact should be documented or changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants