From 5c7f603b67c21b1b64513b3c17caa3e73d667972 Mon Sep 17 00:00:00 2001 From: cyberhoward Date: Mon, 15 Jul 2024 18:21:04 +0200 Subject: [PATCH] add rpc url to chaininfobase --- packages/cw-orch-core/src/environment/chain_info.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cw-orch-core/src/environment/chain_info.rs b/packages/cw-orch-core/src/environment/chain_info.rs index 5b86c75ec..ccf422fbf 100644 --- a/packages/cw-orch-core/src/environment/chain_info.rs +++ b/packages/cw-orch-core/src/environment/chain_info.rs @@ -21,6 +21,8 @@ pub struct ChainInfoBase, StringArrayType: AsRef<[Strin pub gas_price: f64, /// gRPC urls, used to attempt connection pub grpc_urls: StringArrayType, + /// RPC urls, used to attempt connection + pub rpc_urls: StringArrayType, /// Optional urls for custom functionality pub lcd_url: Option, /// Optional urls for custom functionality @@ -49,6 +51,7 @@ impl From for ChainInfoOwned { gas_denom: value.gas_denom.to_string(), gas_price: value.gas_price, grpc_urls: value.grpc_urls.iter().map(|url| url.to_string()).collect(), + rpc_urls: value.rpc_urls.iter().map(|url| url.to_string()).collect(), lcd_url: value.lcd_url.map(ToString::to_string), fcd_url: value.fcd_url.map(ToString::to_string), network_info: value.network_info.into(),