Skip to content

Commit

Permalink
update interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred0327 committed Dec 23, 2023
1 parent 76af19a commit 573d865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provider/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl RpcClient {
Ok(resp)
}

pub async fn account_snapshot(
pub async fn get_account_snapshot(
&self,
account_query: AccountQuery,
sub_account_id: Option<SubAccountId>,
Expand All @@ -187,7 +187,7 @@ impl RpcClient {
Ok(resp)
}

pub async fn tx_info(&self, hash: TxHash, include_update: bool) -> RpcResult<TxResp> {
pub async fn get_tx_info(&self, hash: TxHash, include_update: bool) -> RpcResult<TxResp> {
let method = "getTransactionByHash";
let resp = self
.inner
Expand All @@ -196,7 +196,7 @@ impl RpcClient {
Ok(resp)
}

pub async fn tx_history(
pub async fn get_account_tx_history(
&self,
tx_type: ZkLinkTxType,
address: ZkLinkAddress,
Expand All @@ -211,7 +211,7 @@ impl RpcClient {
Ok(resp)
}

pub async fn tx_withdraw(
pub async fn get_withdraw_txs(
&self,
last_tx_timestamp_micro: u64,
max_txs: u32,
Expand Down

0 comments on commit 573d865

Please sign in to comment.