mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cleaner
This commit is contained in:
parent
70e8118b27
commit
150c994d15
1 changed files with 2 additions and 6 deletions
|
|
@ -16,16 +16,12 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
||||||
var (
|
chainID := os.Getenv("CHAIN_ID")
|
||||||
chainID, cometbftRPCEndpoint string
|
|
||||||
)
|
|
||||||
|
|
||||||
chainID = os.Getenv("CHAIN_ID")
|
|
||||||
if chainID == "" {
|
if chainID == "" {
|
||||||
chainID = defaultChainID
|
chainID = defaultChainID
|
||||||
}
|
}
|
||||||
|
|
||||||
cometbftRPCEndpoint = os.Getenv("COMETBFT_RPC_ENDPOINT")
|
cometbftRPCEndpoint := os.Getenv("COMETBFT_RPC_ENDPOINT")
|
||||||
if cometbftRPCEndpoint == "" {
|
if cometbftRPCEndpoint == "" {
|
||||||
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
|
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue