diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd5d7677..3d2422c11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - `Gadgets.and()`, new provable method to support bitwise and. https://github.com/o1-labs/o1js/pull/1193 - `Gadgets.multiRangeCheck()` and `Gadgets.compactMultiRangeCheck()`, two building blocks for non-native arithmetic with bigints of size up to 264 bits. https://github.com/o1-labs/o1js/pull/1216 +### Fixed + +- Removed array reversal of fetched actions, since they are returned in the correct order. https://github.com/o1-labs/o1js/pull/1258 + ## [0.14.0](https://github.com/o1-labs/o1js/compare/045faa7...e8e7510e1) ### Breaking changes diff --git a/src/lib/fetch.ts b/src/lib/fetch.ts index 6872b1156..88b87c7e8 100644 --- a/src/lib/fetch.ts +++ b/src/lib/fetch.ts @@ -951,10 +951,8 @@ async function fetchActions( break; } } - // Archive Node API returns actions in the latest order, so we reverse the array to get the actions in chronological order. - fetchedActions.reverse(); - let actionsList: { actions: string[][]; hash: string }[] = []; + let actionsList: { actions: string[][]; hash: string }[] = []; // correct for archive node sending one block too many if ( fetchedActions.length !== 0 &&