Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Dec 18, 2024
1 parent c8b5d12 commit 9b23e92
Show file tree
Hide file tree
Showing 2 changed files with 4,616 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/search_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,24 @@ async fn search_transactions_zkapp_tokens_tx_hash() -> Result<()> {
assert_debug_snapshot!(response_tx_hash);
Ok(())
}

#[tokio::test]
async fn search_transactions_offset_limit() -> Result<()> {
let mina_mesh = MinaMeshConfig::from_env().to_mina_mesh().await?;
// cspell:disable-next-line
let address = "B62qrHd4Wg8z6N6tCC9pVtRtxEuBXLWPH61gbcgotURdiU1rSURMdFB";
let max_block = 370_000;
let request = SearchTransactionsRequest {
network_identifier: Box::new(network_id()),
address: Some(address.to_string()),
max_block: Some(max_block),
limit: Some(15),
offset: Some(5),
..Default::default()
};
let response = mina_mesh.search_transactions(request).await;

assert!(response.is_ok());
assert_debug_snapshot!(response);
Ok(())
}
Loading

0 comments on commit 9b23e92

Please sign in to comment.