Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: reallylowest <[email protected]>
  • Loading branch information
reallylowest committed Mar 29, 2024
1 parent 9469da8 commit 3fd2c24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/types/trace_filtering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub struct Call {
pub from: Address,
/// Recipient
pub to: Address,
/// Transfered Value
/// Transferred Value
pub value: U256,
/// Gas
pub gas: U256,
Expand Down
4 changes: 2 additions & 2 deletions src/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Transaction {
pub from: Option<Address>,
/// Recipient (None when contract creation)
pub to: Option<Address>,
/// Transfered value
/// Transferred value
pub value: U256,
/// Gas Price
#[serde(rename = "gasPrice")]
Expand Down Expand Up @@ -87,7 +87,7 @@ pub struct Receipt {
pub cumulative_gas_used: U256,
/// Gas used by this transaction alone.
///
/// Gas used is `None` if the the client is running in light client mode.
/// Gas used is `None` if the client is running in light client mode.
#[serde(rename = "gasUsed")]
pub gas_used: Option<U256>,
/// Contract address created, or `None` if not a deployment.
Expand Down
10 changes: 5 additions & 5 deletions src/types/transaction_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct CallRequest {
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "gasPrice")]
pub gas_price: Option<U256>,
/// Transfered value (None for no transfer)
/// Transferred value (None for no transfer)
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<U256>,
/// Data (None for empty data)
Expand Down Expand Up @@ -80,13 +80,13 @@ impl CallRequestBuilder {
self
}

/// Set transfered value (None for no transfer)
/// Set transferred value (None for no transfer)
pub fn gas_price(mut self, gas_price: U256) -> Self {
self.call_request.gas_price = Some(gas_price);
self
}

/// Set transfered value (None for no transfer)
/// Set transferred value (None for no transfer)
pub fn value(mut self, value: U256) -> Self {
self.call_request.value = Some(value);
self
Expand Down Expand Up @@ -131,7 +131,7 @@ pub struct TransactionRequest {
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(rename = "gasPrice")]
pub gas_price: Option<U256>,
/// Transfered value (None for no transfer)
/// Transferred value (None for no transfer)
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<U256>,
/// Transaction data (None for empty bytes)
Expand Down Expand Up @@ -196,7 +196,7 @@ impl TransactionRequestBuilder {
self
}

/// Set transfered value (None for no transfer)
/// Set transferred value (None for no transfer)
pub fn value(mut self, value: U256) -> Self {
self.transaction_request.value = Some(value);
self
Expand Down

0 comments on commit 3fd2c24

Please sign in to comment.