From 50f0dddac1ca975b1268450c441d25db561c38c0 Mon Sep 17 00:00:00 2001 From: Daniil Lashin Date: Thu, 2 Dec 2021 09:05:46 +0300 Subject: [PATCH] Fix relayer standalone script --- orchestrator/relayer/src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/orchestrator/relayer/src/main.rs b/orchestrator/relayer/src/main.rs index 0c3212e..587a970 100644 --- a/orchestrator/relayer/src/main.rs +++ b/orchestrator/relayer/src/main.rs @@ -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, } lazy_static! { pub static ref USAGE: String = format!( - "Usage: {} --ethereum-key= --cosmos-grpc= --address-prefix= --ethereum-rpc= --contract-address= + "Usage: {} [--eth-fee-calculator-url=] --chain-id= --ethereum-key= --cosmos-grpc= --address-prefix= --ethereum-rpc= --contract-address= Options: -h --help Show this screen. --ethereum-key= An Ethereum private key containing non-trivial funds @@ -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), @@ -100,6 +105,8 @@ async fn main() { connections.web3.unwrap(), connections.grpc.unwrap(), gravity_contract_address, + chain_id, + eth_fee_calculator_url, ) .await }