Skip to content

Commit

Permalink
add rpc url to chaininfobase
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Jul 15, 2024
1 parent 286df44 commit 5c7f603
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cw-orch-core/src/environment/chain_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub struct ChainInfoBase<StringType: Into<String>, 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<StringType>,
/// Optional urls for custom functionality
Expand Down Expand Up @@ -49,6 +51,7 @@ impl From<ChainInfo> 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(),
Expand Down

0 comments on commit 5c7f603

Please sign in to comment.