Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
move flag to common required since both prover and proposer use it
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd committed Sep 25, 2023
1 parent 0acc7e9 commit ed5334a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions cmd/flags/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -114,6 +120,7 @@ var CommonFlags = []cli.Flag{
L1WSEndpoint,
TaikoL1Address,
TaikoL2Address,
TaikoTokenAddress,
// Optional
Verbosity,
LogJson,
Expand Down
7 changes: 0 additions & 7 deletions cmd/flags/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -111,5 +105,4 @@ var ProposerFlags = MergeFlags(CommonFlags, []cli.Flag{
BlockProposalFee,
BlockProposalFeeIncreasePercentage,
BlockProposalFeeIterations,
TaikoTokenAddress,
})
1 change: 0 additions & 1 deletion cmd/flags/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,4 @@ var ProverFlags = MergeFlags(CommonFlags, []cli.Flag{
ProverHTTPServerPort,
ProverCapacity,
MaxExpiry,
TaikoTokenAddress,
})

0 comments on commit ed5334a

Please sign in to comment.