Skip to content

Commit

Permalink
Fix relayer standalone script
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Dec 2, 2021
1 parent bb7fa8e commit 50f0ddd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion orchestrator/relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ struct Args {
flag_address_prefix: String,
flag_ethereum_rpc: String,
flag_contract_address: String,
flag_chain_id: String,
flag_eth_fee_calculator_url: Option<String>,
}

lazy_static! {
pub static ref USAGE: String = format!(
"Usage: {} --ethereum-key=<key> --cosmos-grpc=<url> --address-prefix=<prefix> --ethereum-rpc=<url> --contract-address=<addr>
"Usage: {} [--eth-fee-calculator-url=<furl>] --chain-id=<id> --ethereum-key=<key> --cosmos-grpc=<url> --address-prefix=<prefix> --ethereum-rpc=<url> --contract-address=<addr>
Options:
-h --help Show this screen.
--ethereum-key=<ekey> An Ethereum private key containing non-trivial funds
Expand Down Expand Up @@ -72,6 +74,9 @@ async fn main() {
.parse()
.expect("Invalid contract address!");

let chain_id = args.flag_chain_id;
let eth_fee_calculator_url = args.flag_eth_fee_calculator_url;

let connections = create_rpc_connections(
args.flag_address_prefix,
Some(args.flag_cosmos_grpc),
Expand Down Expand Up @@ -100,6 +105,8 @@ async fn main() {
connections.web3.unwrap(),
connections.grpc.unwrap(),
gravity_contract_address,
chain_id,
eth_fee_calculator_url,
)
.await
}

0 comments on commit 50f0ddd

Please sign in to comment.