From 08bc67086a0963760f7b2b31f781daccf942e657 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Wed, 16 Oct 2024 13:46:18 +0200 Subject: [PATCH] Test update --- tests/search_transactions.rs | 2 +- ...ons__search_transactions_zkapp_failed.snap | 122 +----------------- 2 files changed, 2 insertions(+), 122 deletions(-) diff --git a/tests/search_transactions.rs b/tests/search_transactions.rs index 97cd69b..a51ee07 100644 --- a/tests/search_transactions.rs +++ b/tests/search_transactions.rs @@ -97,7 +97,7 @@ async fn search_transactions_zkapp_failed() -> Result<()> { // cspell:disable-next-line "5JujBt8rnKheA7CHBnTwUDXrHtQxqPB9LL5Q8y4KwLjPBsBSJuSE".to_string(), ))), - limit: Some(3), + limit: Some(1), ..Default::default() }; diff --git a/tests/snapshots/search_transactions__search_transactions_zkapp_failed.snap b/tests/snapshots/search_transactions__search_transactions_zkapp_failed.snap index f5aa899..a35e65d 100644 --- a/tests/snapshots/search_transactions__search_transactions_zkapp_failed.snap +++ b/tests/snapshots/search_transactions__search_transactions_zkapp_failed.snap @@ -125,128 +125,8 @@ Ok( metadata: None, }, }, - BlockTransaction { - block_identifier: BlockIdentifier { - index: 356949, - hash: "3NKL6D7kcvH28odK9QpCqvKuHjx2jm2BhfKjPVkvLLyAoKKMD3JF", - }, - transaction: Transaction { - transaction_identifier: TransactionIdentifier { - hash: "5JujBt8rnKheA7CHBnTwUDXrHtQxqPB9LL5Q8y4KwLjPBsBSJuSE", - }, - operations: [ - Operation { - operation_identifier: OperationIdentifier { - index: 0, - network_index: None, - }, - related_operations: None, - type: "zkapp_fee_payer_dec", - status: Some( - "Success", - ), - account: Some( - AccountIdentifier { - address: "B62qjGsPY47SMkTykivPBAU3riS9gvMMrGr7ve6ynoHJNBzAhQmtoBn", - sub_account: None, - metadata: Some( - Object { - "token_id": String("wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf"), - }, - ), - }, - ), - amount: Some( - Amount { - value: "-100000000", - currency: Currency { - symbol: "MINA", - decimals: 9, - metadata: None, - }, - metadata: None, - }, - ), - coin_change: None, - metadata: None, - }, - Operation { - operation_identifier: OperationIdentifier { - index: 1, - network_index: None, - }, - related_operations: None, - type: "zkapp_balance_update", - status: Some( - "Failed", - ), - account: Some( - AccountIdentifier { - address: "B62qide3tEVFgzLFo72rhrF4p8Luv6R5NAmvwo83SnZGnwV9Q6fiVTK", - sub_account: None, - metadata: Some( - Object { - "token_id": String("wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf"), - }, - ), - }, - ), - amount: Some( - Amount { - value: "0", - currency: Currency { - symbol: "MINA", - decimals: 9, - metadata: None, - }, - metadata: None, - }, - ), - coin_change: None, - metadata: None, - }, - Operation { - operation_identifier: OperationIdentifier { - index: 2, - network_index: None, - }, - related_operations: None, - type: "zkapp_balance_update", - status: Some( - "Failed", - ), - account: Some( - AccountIdentifier { - address: "B62qjGsPY47SMkTykivPBAU3riS9gvMMrGr7ve6ynoHJNBzAhQmtoBn", - sub_account: None, - metadata: Some( - Object { - "token_id": String("wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf"), - }, - ), - }, - ), - amount: Some( - Amount { - value: "0", - currency: Currency { - symbol: "MINA", - decimals: 9, - metadata: None, - }, - metadata: None, - }, - ), - coin_change: None, - metadata: None, - }, - ], - related_transactions: None, - metadata: None, - }, - }, ], - total_count: 2, + total_count: 1, next_offset: None, }, )