diff --git a/src/api/search_transactions.rs b/src/api/search_transactions.rs index ed998d0..71d5d40 100644 --- a/src/api/search_transactions.rs +++ b/src/api/search_transactions.rs @@ -1,4 +1,4 @@ -use std::collections::HashMap; +use std::collections::{BTreeMap, HashMap}; use coinbase_mesh::models::{ AccountIdentifier, BlockIdentifier, BlockTransaction, Operation, SearchTransactionsRequest, @@ -160,7 +160,7 @@ impl MinaMesh { } pub fn zkapp_commands_to_block_transactions(commands: Vec) -> Vec { - let mut block_map: HashMap<(i64, String), HashMap>> = HashMap::new(); + let mut block_map: HashMap<(i64, String), BTreeMap>> = HashMap::new(); for command in commands { // Group by block identifier (block index and block hash)