From 3fd2c24a5e401c19b407908c43537105e46dc6ce Mon Sep 17 00:00:00 2001 From: reallylowest Date: Fri, 29 Mar 2024 23:32:19 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: reallylowest --- src/types/trace_filtering.rs | 2 +- src/types/transaction.rs | 4 ++-- src/types/transaction_request.rs | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/types/trace_filtering.rs b/src/types/trace_filtering.rs index 83005157..6095937d 100644 --- a/src/types/trace_filtering.rs +++ b/src/types/trace_filtering.rs @@ -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, diff --git a/src/types/transaction.rs b/src/types/transaction.rs index 017fd23a..e481979a 100644 --- a/src/types/transaction.rs +++ b/src/types/transaction.rs @@ -22,7 +22,7 @@ pub struct Transaction { pub from: Option
, /// Recipient (None when contract creation) pub to: Option
, - /// Transfered value + /// Transferred value pub value: U256, /// Gas Price #[serde(rename = "gasPrice")] @@ -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, /// Contract address created, or `None` if not a deployment. diff --git a/src/types/transaction_request.rs b/src/types/transaction_request.rs index 1fb4a544..75f09fc2 100644 --- a/src/types/transaction_request.rs +++ b/src/types/transaction_request.rs @@ -21,7 +21,7 @@ pub struct CallRequest { #[serde(skip_serializing_if = "Option::is_none")] #[serde(rename = "gasPrice")] pub gas_price: Option, - /// Transfered value (None for no transfer) + /// Transferred value (None for no transfer) #[serde(skip_serializing_if = "Option::is_none")] pub value: Option, /// Data (None for empty data) @@ -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 @@ -131,7 +131,7 @@ pub struct TransactionRequest { #[serde(skip_serializing_if = "Option::is_none")] #[serde(rename = "gasPrice")] pub gas_price: Option, - /// Transfered value (None for no transfer) + /// Transferred value (None for no transfer) #[serde(skip_serializing_if = "Option::is_none")] pub value: Option, /// Transaction data (None for empty bytes) @@ -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