Skip to content

Commit

Permalink
docs: adjust provider docs
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Mar 11, 2024
1 parent 92cf293 commit 5f195ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/providers/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub trait Provider<N: Network, T: Transport + Clone = BoxTransport>: Send + Sync
self.client().prepare("eth_getCode", (address, tag)).await
}

/// Gets a [Transaction] by its [TxHash].
/// Gets a transaction by its [TxHash].
async fn get_transaction_by_hash(
&self,
hash: TxHash,
Expand All @@ -233,7 +233,7 @@ pub trait Provider<N: Network, T: Transport + Clone = BoxTransport>: Send + Sync
self.client().prepare("eth_gasPrice", ()).await
}

/// Gets a [TransactionReceipt] if it exists, by its [TxHash].
/// Gets a transaction receipt if it exists, by its [TxHash].
async fn get_transaction_receipt(
&self,
hash: TxHash,
Expand Down Expand Up @@ -277,7 +277,7 @@ pub trait Provider<N: Network, T: Transport + Clone = BoxTransport>: Send + Sync
self.client().prepare("eth_syncing", ()).await
}

/// Execute a smart contract call with [TransactionRequest] without publishing a transaction.
/// Execute a smart contract call with a transaction request, without publishing a transaction.
async fn call(
&self,
tx: &N::TransactionRequest,
Expand All @@ -286,7 +286,7 @@ pub trait Provider<N: Network, T: Transport + Clone = BoxTransport>: Send + Sync
self.client().prepare("eth_call", (tx, block.unwrap_or_default())).await
}

/// Execute a smart contract call with [TransactionRequest] and state overrides, without
/// Execute a smart contract call with a transaction request and state overrides, without
/// publishing a transaction.
///
/// # Note
Expand Down

0 comments on commit 5f195ba

Please sign in to comment.