mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Make the environment variables actually work
This commit is contained in:
parent
35794121f5
commit
70e8118b27
1 changed files with 4 additions and 4 deletions
|
|
@ -20,13 +20,13 @@ func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
|
||||||
chainID, cometbftRPCEndpoint string
|
chainID, cometbftRPCEndpoint string
|
||||||
)
|
)
|
||||||
|
|
||||||
envChainId := os.Getenv("CHAIN_ID")
|
chainID = os.Getenv("CHAIN_ID")
|
||||||
if envChainId == "" {
|
if chainID == "" {
|
||||||
chainID = defaultChainID
|
chainID = defaultChainID
|
||||||
}
|
}
|
||||||
|
|
||||||
envCometbftRPCEndpoint := os.Getenv("COMETBFT_RPC_ENDPOINT")
|
cometbftRPCEndpoint = os.Getenv("COMETBFT_RPC_ENDPOINT")
|
||||||
if envCometbftRPCEndpoint == "" {
|
if cometbftRPCEndpoint == "" {
|
||||||
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
|
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue