Skip to content

Commit

Permalink
Return blockchain in newest -> oldest order instead of reversed (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ak3n committed May 12, 2021
1 parent f441263 commit 63a5d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plutus-contract/src/Wallet/Emulator/Folds.hs
Expand Up @@ -269,7 +269,7 @@ blockchain =
TxnValidationFail{} -> (currentBlock, otherBlocks)
initial = ([], [])
extract (currentBlock, otherBlocks) =
reverse (currentBlock : otherBlocks)
(currentBlock : otherBlocks)
in preMapMaybe (preview (eteEvent . chainEvent))
$ Fold step initial extract

Expand Down

0 comments on commit 63a5d2e

Please sign in to comment.