MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / main

Function main

fendermint/eth/api/examples/query_blockhash.rs:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76/// See the module docs for how to run.
77#[tokio::main]
78async fn main() -> Result<(), Box<dyn std::error::Error>> {
79 let opts: Options = Options::parse();
80
81 tracing_subscriber::fmt()
82 .with_max_level(opts.log_level())
83 .init();
84
85 let provider = Provider::<Http>::try_from(opts.http_endpoint())?;
86
87 run_http(provider, &opts).await?;
88
89 Ok(())
90}
91
92async fn run<C>(provider: &Provider<C>, opts: &Options) -> anyhow::Result<()>
93where

Callers

nothing calls this directly

Calls 5

parseFunction · 0.85
run_httpFunction · 0.70
initMethod · 0.45
log_levelMethod · 0.45
http_endpointMethod · 0.45

Tested by

no test coverage detected