Skip to content

Commit

Permalink
use only our tofn
Browse files Browse the repository at this point in the history
  • Loading branch information
anstylian committed Feb 20, 2025
1 parent 39ce2e8 commit f469d03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 50 deletions.
27 changes: 3 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ starknet-core = "0.12.0"
starknet-providers = "0.12.0"
syn = "2.0.92"
thiserror = "1.0.61"
tofn = { version = "1.1" }
tofn = { version = "1.1", git = "https://github.com/eigerco/tofn.git", branch = "aleo-schnorr" }
tokio = "1.38.0"
tokio-stream = "0.1.11"
tokio-util = "0.7.11"
Expand Down
2 changes: 1 addition & 1 deletion contracts/multisig-prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ elliptic-curve = "0.13.5"
generic-array = "0.14.7"
goldie = { workspace = true }
prost = "0.12.4"
tofn = { version = "1.1", git = "https://github.com/eigerco/tofn.git", branch = "aleo-schnorr", features = [ "aleo-schnorr"] }
tofn = { workspace = true, features = ["aleo-schnorr"] }
snarkvm = "1.2.1"

[lints]
Expand Down
24 changes: 0 additions & 24 deletions packages/aleo-utils/src/block_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,3 @@ pub struct GatewayOutput {
pub destination_chain: [u8; 32],
}

#[cfg(test)]
mod tests {
use crate::block_processor::{Block, Transaction};

#[test]
fn parse_block() {
let block = include_str!(
"../../../test/data/aleo-utils/ab1yf27fcu4exccn4jt6wmwuxkseafyxhs5vk92su4nutq35s4jdupqeeprdp.json"
);

let block = serde_json::from_str::<Block>(block);
assert!(block.is_ok());
}

#[test]
fn parse_transaction() {
let transaction = include_str!(
"../../../test/data/aleo-utils/at1dgmvx30f79wt6w8fcjurwtsc5zak4efg4ayyme79862xylve7gxsq3nfh6.json"
);

let transaction = serde_json::from_str::<Transaction>(transaction);
assert!(transaction.is_ok());
}
}

0 comments on commit f469d03

Please sign in to comment.