From ed5334a693c2909b44cbdfe99a73f69fe44e1fb9 Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Mon, 25 Sep 2023 15:08:17 -0700 Subject: [PATCH] move flag to common required since both prover and proposer use it --- cmd/flags/common.go | 7 +++++++ cmd/flags/proposer.go | 7 ------- cmd/flags/prover.go | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmd/flags/common.go b/cmd/flags/common.go index 4f94daeec..9cdf5577b 100644 --- a/cmd/flags/common.go +++ b/cmd/flags/common.go @@ -51,6 +51,12 @@ var ( Required: true, Category: commonCategory, } + TaikoTokenAddress = &cli.StringFlag{ + Name: "taikoToken", + Usage: "TaikoToken contract address", + Required: true, + Category: commonCategory, + } // Optional flags used by all client softwares. // Logging Verbosity = &cli.IntFlag{ @@ -114,6 +120,7 @@ var CommonFlags = []cli.Flag{ L1WSEndpoint, TaikoL1Address, TaikoL2Address, + TaikoTokenAddress, // Optional Verbosity, LogJson, diff --git a/cmd/flags/proposer.go b/cmd/flags/proposer.go index 3ead92e0f..91dcbe84b 100644 --- a/cmd/flags/proposer.go +++ b/cmd/flags/proposer.go @@ -28,12 +28,6 @@ var ( Usage: "Initial block proposal fee (in wei) paid on block proposing", Category: proposerCategory, } - TaikoTokenAddress = &cli.StringFlag{ - Name: "taikoToken", - Usage: "TaikoToken contract address", - Required: true, - Category: proposerCategory, - } ) // Optional flags used by proposer. @@ -111,5 +105,4 @@ var ProposerFlags = MergeFlags(CommonFlags, []cli.Flag{ BlockProposalFee, BlockProposalFeeIncreasePercentage, BlockProposalFeeIterations, - TaikoTokenAddress, }) diff --git a/cmd/flags/prover.go b/cmd/flags/prover.go index 7b7465a07..4b098bd0f 100644 --- a/cmd/flags/prover.go +++ b/cmd/flags/prover.go @@ -149,5 +149,4 @@ var ProverFlags = MergeFlags(CommonFlags, []cli.Flag{ ProverHTTPServerPort, ProverCapacity, MaxExpiry, - TaikoTokenAddress, })