Skip to content

Commit 6bd050b

Browse files
committed
refactor!(client): rename scripthash_txs to get_scripthash_txs
1 parent 46abe32 commit 6bd050b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ impl<S: Sleeper> AsyncClient<S> {
471471
/// sorted with newest first. Returns 25 transactions per page.
472472
/// More can be requested by specifying the last txid seen by the previous
473473
/// query.
474-
pub async fn scripthash_txs(
474+
pub async fn get_scripthash_txs(
475475
&self,
476476
script: &Script,
477477
last_seen: Option<Txid>,

src/blocking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl BlockingClient {
433433
/// sorted with newest first. Returns 25 transactions per page.
434434
/// More can be requested by specifying the last txid seen by the previous
435435
/// query.
436-
pub fn scripthash_txs(
436+
pub fn get_scripthash_txs(
437437
&self,
438438
script: &Script,
439439
last_seen: Option<Txid>,

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ mod test {
954954

955955
#[cfg(all(feature = "blocking", feature = "async"))]
956956
#[tokio::test]
957-
async fn test_scripthash_txs() {
957+
async fn test_get_scripthash_txs() {
958958
let env = TestEnv::new();
959959
let (blocking_client, async_client) = env.setup_clients();
960960

@@ -976,13 +976,13 @@ mod test {
976976
.tx;
977977
let script = &expected_tx.output[0].script_pubkey;
978978
let scripthash_txs_txids: Vec<Txid> = blocking_client
979-
.scripthash_txs(script, None)
979+
.get_scripthash_txs(script, None)
980980
.unwrap()
981981
.iter()
982982
.map(|tx| tx.txid)
983983
.collect();
984984
let scripthash_txs_txids_async: Vec<Txid> = async_client
985-
.scripthash_txs(script, None)
985+
.get_scripthash_txs(script, None)
986986
.await
987987
.unwrap()
988988
.iter()

0 commit comments

Comments
 (0)