From 15be482c066e84abd529983cb97d14b5125a0da3 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Sun, 24 May 2020 21:45:18 +0300 Subject: [PATCH] do not expose fields --- src/types/transaction.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 {