Skip to content

Commit

Permalink
adding test but with error with call_context
Browse files Browse the repository at this point in the history
  • Loading branch information
JacqueGM committed Aug 10, 2023
1 parent 9e7d27a commit 329302d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use pathfinder2::rpc::call_context::CallContext;
use pathfinder2::graph::compute_flow;
use pathfinder2::io::import_from_safes_binary;
use pathfinder2::types::edge::EdgeDB;
Expand All @@ -13,15 +14,16 @@ fn test_flow_chris_martin() {
let edges = read_edges();
let chriseth = Address::from("0x8DC7e86fF693e9032A0F41711b5581a04b26Be2E");
let martin = Address::from("0x42cEDde51198D1773590311E2A340DC06B24cB37");
test_flow(&chriseth, &martin, &edges, U256::MAX, None, None, None);
test_flow(&chriseth, &martin, &edges, U256::MAX, None, Some(2), None);
test_flow(&chriseth, &martin, &edges, U256::MAX, None, None, &CallContext);
test_flow(&chriseth, &martin, &edges, U256::MAX, None, Some(2), &CallContext);
test_flow(
&chriseth,
&martin,
&edges,
U256::from(71152921504606846976),
None,
Some(2),
&CallContext,
);
test_flow(
&chriseth,
Expand All @@ -30,7 +32,7 @@ fn test_flow_chris_martin() {
U256::MAX,
None,
Some(2),
None,
&CallContext,
);
}

Expand All @@ -47,7 +49,7 @@ fn test_flow_large() {
U256::MAX,
None,
Some(30),
None,
&CallContext,
);
// test_flow(&large_source, &large_dest, &edges, U256::MAX, Some(10));
}
Expand Down Expand Up @@ -75,6 +77,7 @@ fn test_flow(
requested_flow,
max_distance,
max_transfers,
call_context,
);
println!("{transfers:?}");

Expand Down

0 comments on commit 329302d

Please sign in to comment.