From 694d4f52460f2b39393b70e55902e2a89274c0fc Mon Sep 17 00:00:00 2001 From: vuong177 Date: Wed, 13 Nov 2024 12:20:36 +0700 Subject: [PATCH] do not return err when found duplicate symbol --- x/oracle/keeper/band_oracle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/keeper/band_oracle.go b/x/oracle/keeper/band_oracle.go index ef31a0e..dc8b5fa 100644 --- a/x/oracle/keeper/band_oracle.go +++ b/x/oracle/keeper/band_oracle.go @@ -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)