From 15d87a7eb53e8d55a3bd54fa5e6d4284b9d72db0 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Tue, 1 Nov 2022 07:34:23 -0500 Subject: [PATCH] core/chains: use IsEnabled --- core/chains/solana/chain_set.go | 2 +- core/chains/starknet/chain_set.go | 2 +- core/chains/terra/chain_set.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/chains/solana/chain_set.go b/core/chains/solana/chain_set.go index e232674f0cf..0d1aa0d0063 100644 --- a/core/chains/solana/chain_set.go +++ b/core/chains/solana/chain_set.go @@ -58,7 +58,7 @@ func (o *ChainSetOpts) NewChain(dbchain DBChain) (solana.Chain, error) { } func (o *ChainSetOpts) NewTOMLChain(cfg *SolanaConfig) (solana.Chain, error) { - if !*cfg.Enabled { + if !cfg.IsEnabled() { return nil, errors.Errorf("cannot create new chain with ID %s, the chain is disabled", *cfg.ChainID) } c, err := newChain(*cfg.ChainID, cfg, o.KeyStore, o.ORM, o.Logger) diff --git a/core/chains/starknet/chain_set.go b/core/chains/starknet/chain_set.go index defab6d2832..2ece25970c7 100644 --- a/core/chains/starknet/chain_set.go +++ b/core/chains/starknet/chain_set.go @@ -56,7 +56,7 @@ func (o *ChainSetOpts) NewChain(dbchain types.DBChain) (starkchain.Chain, error) } func (o *ChainSetOpts) NewTOMLChain(cfg *StarknetConfig) (starkchain.Chain, error) { - if !*cfg.Enabled { + if !cfg.IsEnabled() { return nil, errors.Errorf("cannot create new chain with ID %s, the chain is disabled", *cfg.ChainID) } c, err := newChain(*cfg.ChainID, cfg, o.KeyStore, o.ORM, o.Logger) diff --git a/core/chains/terra/chain_set.go b/core/chains/terra/chain_set.go index 4781857ab5d..2333e3eef2c 100644 --- a/core/chains/terra/chain_set.go +++ b/core/chains/terra/chain_set.go @@ -76,7 +76,7 @@ func (o *ChainSetOpts) NewChain(dbchain types.DBChain) (terra.Chain, error) { } func (o *ChainSetOpts) NewTOMLChain(cfg *TerraConfig) (terra.Chain, error) { - if !*cfg.Enabled { + if !cfg.IsEnabled() { return nil, errors.Errorf("cannot create new chain with ID %s, the chain is disabled", *cfg.ChainID) } c, err := newChain(*cfg.ChainID, cfg, o.DB, o.KeyStore, o.Config, o.EventBroadcaster, o.ORM, o.Logger)