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

Commit

Permalink
test: saner tx list params (#2689)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 29, 2023
1 parent 302207c commit 2e93fa7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ethers-etherscan/tests/it/account.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::*;
use ethers_etherscan::account::{InternalTxQueryOption, TokenQueryOption};
use ethers_etherscan::account::{InternalTxQueryOption, TokenQueryOption, TxListParams};
use serial_test::serial;

#[tokio::test]
Expand Down Expand Up @@ -174,7 +174,10 @@ async fn get_beacon_withdrawal_transactions_success() {
async fn get_avalanche_transactions() {
run_with_client(Chain::Avalanche, |client| async move {
let txs = client
.get_transactions(&"0x1549ea9b546ba9ffb306d78a1e1f304760cc4abf".parse().unwrap(), None)
.get_transactions(
&"0x1549ea9b546ba9ffb306d78a1e1f304760cc4abf".parse().unwrap(),
Some(TxListParams { end_block: 1000, offset: 10, ..Default::default() }),
)
.await;
txs.unwrap();
})
Expand Down

0 comments on commit 2e93fa7

Please sign in to comment.