From 43a42c87a44aee16009fb15d88c6ca78179b1985 Mon Sep 17 00:00:00 2001 From: Omar Date: Tue, 14 Feb 2023 04:48:26 +0300 Subject: [PATCH] Make fields public --- .../src/request/encode_address.rs | 2 +- .../src/request/known_entity_addresses.rs | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/radix-engine-toolkit/src/request/encode_address.rs b/radix-engine-toolkit/src/request/encode_address.rs index 9b0a4180..5e74fd65 100644 --- a/radix-engine-toolkit/src/request/encode_address.rs +++ b/radix-engine-toolkit/src/request/encode_address.rs @@ -50,7 +50,7 @@ pub struct EncodeAddressResponse { /// A discriminated union of entity addresses where addresses are serialized as a Bech32m /// encoded string. #[serde(flatten)] - address: EntityAddress, + pub address: EntityAddress, } // =============== diff --git a/radix-engine-toolkit/src/request/known_entity_addresses.rs b/radix-engine-toolkit/src/request/known_entity_addresses.rs index d39cf3d5..9229b168 100644 --- a/radix-engine-toolkit/src/request/known_entity_addresses.rs +++ b/radix-engine-toolkit/src/request/known_entity_addresses.rs @@ -52,61 +52,61 @@ pub struct KnownEntityAddressesResponse { /// represents the address of the faucet component on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - faucet_component_address: NetworkAwareComponentAddress, + pub faucet_component_address: NetworkAwareComponentAddress, /// A package address serialized as a `PackageAddress` from the `Value` model which represents /// the address of the faucet package on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - faucet_package_address: NetworkAwarePackageAddress, + pub faucet_package_address: NetworkAwarePackageAddress, /// A package address serialized as a `PackageAddress` from the `Value` model which represents /// the address of the account package on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - account_package_address: NetworkAwarePackageAddress, + pub account_package_address: NetworkAwarePackageAddress, /// A resource address serialized as a `ResourceAddress` from the `Value` model which /// represents the address of the XRD resource on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - xrd_resource_address: NetworkAwareResourceAddress, + pub xrd_resource_address: NetworkAwareResourceAddress, /// A resource address serialized as a `ResourceAddress` from the `Value` model which /// represents the address of the system resource on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - system_token_resource_address: NetworkAwareResourceAddress, + pub system_token_resource_address: NetworkAwareResourceAddress, /// A resource address serialized as a `ResourceAddress` from the `Value` model which /// represents the address of the Ecdsa Secp256k1 resource on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - ecdsa_secp256k1_token_resource_address: NetworkAwareResourceAddress, + pub ecdsa_secp256k1_token_resource_address: NetworkAwareResourceAddress, /// A resource address serialized as a `ResourceAddress` from the `Value` model which /// represents the address of the EdDSA Ed25519 resource on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - eddsa_ed25519_token_resource_address: NetworkAwareResourceAddress, + pub eddsa_ed25519_token_resource_address: NetworkAwareResourceAddress, /// A resource address serialized as a `ResourceAddress` from the `Value` model which /// represents the address of the package token resource on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - package_token_resource_address: NetworkAwareResourceAddress, + pub package_token_resource_address: NetworkAwareResourceAddress, /// A system address serialized as a `ComponentAddress` from the `Value` model which represents /// the address of the epoch manager on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - epoch_manager_system_address: NetworkAwareComponentAddress, + pub epoch_manager_system_address: NetworkAwareComponentAddress, /// A system address serialized as a `ComponentAddress` from the `Value` model which represents /// the address of the clock on the requested network. #[schemars(with = "crate::model::value::Value")] #[serde_as(as = "serde_with::TryFromInto")] - clock_system_address: NetworkAwareComponentAddress, + pub clock_system_address: NetworkAwareComponentAddress, } // ===============