This commit is contained in:
Jordan Oroshiba 2023-07-17 15:53:58 +02:00
parent 70e8118b27
commit 150c994d15

View file

@ -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
} }