Skip to content

Commit

Permalink
fix: update error check
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 7, 2024
1 parent 24ca1a1 commit 02adc9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/dal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"bisonai.com/orakl/node/pkg/common/types"
dalcommon "bisonai.com/orakl/node/pkg/dal/common"
"bisonai.com/orakl/node/pkg/db"
errorSentinel "bisonai.com/orakl/node/pkg/error"
errorsentinel "bisonai.com/orakl/node/pkg/error"
klaytncommon "github.com/klaytn/klaytn/common"
"github.com/klaytn/klaytn/crypto"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -202,7 +202,7 @@ func (c *Collector) IncomingDataToOutgoingData(ctx context.Context, data *aggreg
whitelist)
if err != nil {
log.Error().Err(err).Str("Player", "DalCollector").Str("Symbol", c.Symbols[data.GlobalAggregate.ConfigID]).Msg("failed to order proof")
if errors.Is(err, errorSentinel.ErrReporterSignerNotWhitelisted) {
if errors.Is(err, errorsentinel.ErrDalSignerNotWhitelisted) {
go func(ctx context.Context, chainHelper *websocketchainreader.ChainReader, contractAddress string) {
newList, getAllOraclesErr := getAllOracles(ctx, chainHelper, contractAddress)
if getAllOraclesErr != nil {
Expand Down

0 comments on commit 02adc9e

Please sign in to comment.