Skip to content

Commit

Permalink
use btree
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Oct 21, 2024
1 parent 2b39e56 commit 26ae980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sql_to_mesh.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use std::collections::HashMap;
use std::collections::BTreeMap;

use coinbase_mesh::models::{AccountIdentifier, Operation, Transaction, TransactionIdentifier};
use serde_json::json;

use crate::{operation, util::DEFAULT_TOKEN_ID, OperationType, TransactionStatus, ZkAppCommand};

pub fn zkapp_commands_to_transactions(commands: Vec<ZkAppCommand>) -> Vec<Transaction> {
let mut tx_map: HashMap<String, Vec<Operation>> = HashMap::new();
let mut tx_map = BTreeMap::<String, Vec<Operation>>::new();

for command in commands {
let tx_hash = command.hash.clone();
Expand Down

0 comments on commit 26ae980

Please sign in to comment.