Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 2e93fa7

Browse files
authored
test: saner tx list params (#2689)
1 parent 302207c commit 2e93fa7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ethers-etherscan/tests/it/account.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::*;
2-
use ethers_etherscan::account::{InternalTxQueryOption, TokenQueryOption};
2+
use ethers_etherscan::account::{InternalTxQueryOption, TokenQueryOption, TxListParams};
33
use serial_test::serial;
44

55
#[tokio::test]
@@ -174,7 +174,10 @@ async fn get_beacon_withdrawal_transactions_success() {
174174
async fn get_avalanche_transactions() {
175175
run_with_client(Chain::Avalanche, |client| async move {
176176
let txs = client
177-
.get_transactions(&"0x1549ea9b546ba9ffb306d78a1e1f304760cc4abf".parse().unwrap(), None)
177+
.get_transactions(
178+
&"0x1549ea9b546ba9ffb306d78a1e1f304760cc4abf".parse().unwrap(),
179+
Some(TxListParams { end_block: 1000, offset: 10, ..Default::default() }),
180+
)
178181
.await;
179182
txs.unwrap();
180183
})

0 commit comments

Comments
 (0)