Skip to content

Commit

Permalink
do not return err when found duplicate symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Nov 13, 2024
1 parent bc9157a commit 694d4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/oracle/keeper/band_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (k Keeper) AddNewSymbolToBandOracleRequest(ctx context.Context, symbol stri
for _, req := range allBandOracleRequests {
if req.OracleScriptId == oracleScriptId {
if slices.Contains(req.Symbols, symbol) {
return errorsmod.Wrapf(types.ErrSetBandOracleRequest, "symbol %s already registered", symbol)
return nil
}

req.Symbols = append(req.Symbols, symbol)
Expand Down

0 comments on commit 694d4f5

Please sign in to comment.