Skip to content

Commit f56dfc7

Browse files
committed
fix lint
1 parent da95d0c commit f56dfc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/oracle/keeper/report.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package keeper
22

33
import (
4+
errorsmod "cosmossdk.io/errors"
45
sdk "github.com/cosmos/cosmos-sdk/types"
56

67
"github.com/bandprotocol/chain/v2/x/oracle/types"
@@ -14,7 +15,7 @@ func (k Keeper) HasReport(ctx sdk.Context, rid types.RequestID, val sdk.ValAddre
1415
func (k Keeper) GetReport(ctx sdk.Context, rid types.RequestID, val sdk.ValAddress) (types.Report, error) {
1516
bz := ctx.KVStore(k.storeKey).Get(types.ReportsOfValidatorPrefixKey(rid, val))
1617
if bz == nil {
17-
return types.Report{}, sdkerrors.Wrapf(types.ErrReportNotFound, "reqID: %d, valAddr: %s", rid, val.String())
18+
return types.Report{}, errorsmod.Wrapf(types.ErrReportNotFound, "reqID: %d, valAddr: %s", rid, val.String())
1819
}
1920
var report types.Report
2021
k.cdc.MustUnmarshal(bz, &report)

0 commit comments

Comments
 (0)