Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs,fix: Improve error output and documentation clarity in relay ser… #120

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
Loading