diff --git a/src/types/transaction.rs b/src/types/transaction.rs index 6df68e0b..27e78aab 100644 --- a/src/types/transaction.rs +++ b/src/types/transaction.rs @@ -12,33 +12,33 @@ use std::str::FromStr; pub struct TransactionRequest { /// Sender address or ENS name #[serde(skip_serializing_if = "Option::is_none")] - pub from: Option
, + pub(crate) from: Option
, /// Recipient address (None for contract creation) #[serde(skip_serializing_if = "Option::is_none")] - pub to: Option
, + pub(crate) to: Option
, /// Supplied gas (None for sensible default) #[serde(skip_serializing_if = "Option::is_none")] - pub gas: Option, + pub(crate) gas: Option, /// Gas price (None for sensible default) #[serde(rename = "gasPrice")] #[serde(skip_serializing_if = "Option::is_none")] - pub gas_price: Option, + pub(crate) gas_price: Option, /// Transfered value (None for no transfer) #[serde(skip_serializing_if = "Option::is_none")] - pub value: Option, + pub(crate) value: Option, /// The compiled code of a contract OR the first 4 bytes of the hash of the /// invoked method signature and encoded parameters. For details see Ethereum Contract ABI #[serde(skip_serializing_if = "Option::is_none")] - pub data: Option, + pub(crate) data: Option, /// Transaction nonce (None for next available nonce) #[serde(skip_serializing_if = "Option::is_none")] - pub nonce: Option, + pub(crate) nonce: Option, } impl TransactionRequest {