From edb6b443a6744693ec49b04c2b72e528db74f97e Mon Sep 17 00:00:00 2001 From: aloknerurkar Date: Mon, 9 Dec 2024 23:33:03 +0530 Subject: [PATCH] fix: remove required flags for bridge arguments (#518) --- bridge/standard/cmd/user_cli/main.go | 36 +++++++++++++--------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/bridge/standard/cmd/user_cli/main.go b/bridge/standard/cmd/user_cli/main.go index 66c4d8a02..f45c1e746 100644 --- a/bridge/standard/cmd/user_cli/main.go +++ b/bridge/standard/cmd/user_cli/main.go @@ -46,32 +46,28 @@ var ( Required: true, } optionL1RPCUrl = &cli.StringFlag{ - Name: "l1-rpc-url", - Usage: "URL for L1 RPC", - EnvVars: []string{"L1_RPC_URL"}, - Required: true, - Value: "https://ethereum-holesky-rpc.publicnode.com", + Name: "l1-rpc-url", + Usage: "URL for L1 RPC", + EnvVars: []string{"L1_RPC_URL"}, + Value: "https://ethereum-holesky-rpc.publicnode.com", } optionSettlementRPCUrl = &cli.StringFlag{ - Name: "settlement-rpc-url", - Usage: "URL for settlement RPC", - EnvVars: []string{"SETTLEMENT_RPC_URL"}, - Required: true, - Value: "https://chainrpc.testnet.mev-commit.xyz", + Name: "settlement-rpc-url", + Usage: "URL for settlement RPC", + EnvVars: []string{"SETTLEMENT_RPC_URL"}, + Value: "https://chainrpc.testnet.mev-commit.xyz", } optionL1ContractAddr = &cli.StringFlag{ - Name: "l1-contract-addr", - Usage: "address of the L1 gateway contract", - EnvVars: []string{"L1_CONTRACT_ADDR"}, - Required: true, - Value: config.HoleskyContracts.L1Gateway, + Name: "l1-contract-addr", + Usage: "address of the L1 gateway contract", + EnvVars: []string{"L1_CONTRACT_ADDR"}, + Value: config.HoleskyContracts.L1Gateway, } optionSettlementContractAddr = &cli.StringFlag{ - Name: "settlement-contract-addr", - Usage: "address of the settlement gateway contract", - EnvVars: []string{"SETTLEMENT_CONTRACT_ADDR"}, - Required: true, - Value: config.TestnetContracts.SettlementGateway, + Name: "settlement-contract-addr", + Usage: "address of the settlement gateway contract", + EnvVars: []string{"SETTLEMENT_CONTRACT_ADDR"}, + Value: config.TestnetContracts.SettlementGateway, } optionSilent = &cli.BoolFlag{ Name: "silent",