Skip to content

Commit

Permalink
docs,fix: Improve error output and documentation clarity in relay ser…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
crStiv authored Dec 22, 2024
1 parent f1d3e8b commit 3f23036
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/relay/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! # Odyssey Relay
//!
//! TBD
//! A relay service that sponsors transactions for EIP-7702 accounts.
use alloy_provider::{network::EthereumWallet, Provider, ProviderBuilder};
use alloy_rpc_client::RpcClient;
Expand All @@ -25,6 +25,7 @@ struct Args {
#[arg(long = "http.port", value_name = "PORT", default_value_t = 9119)]
port: u16,
/// The RPC endpoint of the chain to send transactions to.
/// Must be a valid HTTP or HTTPS URL pointing to an Ethereum JSON-RPC endpoint.
#[arg(long, value_name = "RPC_ENDPOINT")]
upstream: Url,
/// The secret key to sponsor transactions with.
Expand Down Expand Up @@ -71,7 +72,7 @@ async fn main() {

let args = Args::parse();
if let Err(err) = args.run().await {
eprint!("Error: {err:?}");
eprintln!("Error: {err:?}");
std::process::exit(1);
}
}

0 comments on commit 3f23036

Please sign in to comment.