From b592ecf846014e781f22c259cb7e4c87d6331d4c Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Mon, 20 Nov 2023 12:38:49 -0800 Subject: [PATCH 1/2] fix(fetch.ts): remove reversing actions, as they are in correct order already --- src/lib/fetch.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/fetch.ts b/src/lib/fetch.ts index 8723d5ba1..503babbec 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 && From b91b0336513096cd52f9f6dfb48229459356a0a6 Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Mon, 20 Nov 2023 12:40:47 -0800 Subject: [PATCH 2/2] docs(CHANGELOG.md): update changelog with recent bug fix Add details about the bug fix where array reversal of fetched actions was removed as they are returned in the correct order. This provides users with accurate information about the changes in the latest version. --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9ff71d07..254e3dea9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - `Gadgets.and()`, new provable method to support bitwise and for native field elements. 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