fix: neutron grpc url default; url parsing error message (#3466)

### Description

The default neturon grpc url is plaintext but it was using a `http`
prefix so all requests would fail

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
pull/3469/head agents-2024-03-21
Daniel Savu 8 months ago committed by GitHub
parent 176e710cae
commit 140e3c4bb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      rust/config/mainnet3_config.json
  2. 8
      rust/hyperlane-base/src/settings/parser/mod.rs

@ -482,7 +482,7 @@
],
"grpcUrls": [
{
"http": "https://grpc-kralum.neutron-1.neutron.org:80"
"http": "http://grpc-kralum.neutron-1.neutron.org:80"
}
],
"canonicalAsset": "untrn",

@ -422,7 +422,7 @@ fn parse_custom_urls(
.end()
.map(|urls| {
urls.split(',')
.filter_map(|url| url.parse().take_err(err, || &chain.cwp + "customGrpcUrls"))
.filter_map(|url| url.parse().take_err(err, || &chain.cwp + key))
.collect_vec()
})
}
@ -440,12 +440,12 @@ fn parse_base_and_override_urls(
if combined.is_empty() {
err.push(
&chain.cwp + "rpc_urls",
eyre!("Missing base rpc definitions for chain"),
&chain.cwp + base_key,
eyre!("Missing base {} definitions for chain", base_key),
);
err.push(
&chain.cwp + "custom_rpc_urls",
eyre!("Also missing rpc overrides for chain"),
eyre!("Also missing {} overrides for chain", base_key),
);
}
combined

Loading…
Cancel
Save