From 3a8962ca808f53629a4d79039c6a0b7dd9c751f8 Mon Sep 17 00:00:00 2001 From: Fred Date: Mon, 16 Oct 2023 16:30:16 +0800 Subject: [PATCH] make items in EthPropertyResp public --- provider/src/response.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/provider/src/response.rs b/provider/src/response.rs index 0aebfa2d..c1e1dd71 100644 --- a/provider/src/response.rs +++ b/provider/src/response.rs @@ -285,24 +285,24 @@ pub struct ZkLinkTxHistory { #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct EthPropertyResp { - gateways: Vec, + pub gateways: Vec, } #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct GateWayInfo { - chain_id: ChainId, - l1_gateway_contract: ZkLinkAddress, - l2_gateway_contract: ZkLinkAddress, - tokens: Vec, + pub chain_id: ChainId, + pub l1_gateway_contract: ZkLinkAddress, + pub l2_gateway_contract: ZkLinkAddress, + pub tokens: Vec, } #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct TokenInfo { - token_id: TokenId, - token_address: ZkLinkAddress, - decimal: u8, + pub token_id: TokenId, + pub token_address: ZkLinkAddress, + pub decimal: u8, } #[cfg(test)]