Merge pull request #25 from astriaorg/joroshiba/fix_overrides

Fix sequencer submission override
This commit is contained in:
Jordan Oroshiba 2023-07-17 12:45:17 -04:00 committed by GitHub
commit 82426dfc97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,17 +16,13 @@ const (
)
func sendTransactionToSequencer(ctx context.Context, txBytes []byte) error {
var (
chainID, cometbftRPCEndpoint string
)
envChainId := os.Getenv("CHAIN_ID")
if envChainId == "" {
chainID := os.Getenv("CHAIN_ID")
if chainID == "" {
chainID = defaultChainID
}
envCometbftRPCEndpoint := os.Getenv("COMETBFT_RPC_ENDPOINT")
if envCometbftRPCEndpoint == "" {
cometbftRPCEndpoint := os.Getenv("COMETBFT_RPC_ENDPOINT")
if cometbftRPCEndpoint == "" {
cometbftRPCEndpoint = defaultCometbftRPCEndpoint
}