Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Jan 13, 2025
1 parent 61864b3 commit a0b8d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions x/blobstream/keeper/keeper_valset.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ func (k Keeper) GetCurrentValset(ctx sdk.Context) (types.Valset, error) {
return types.Valset{}, err
}
p := math.NewInt(lastValidatorPower)
if err != nil {
return types.Valset{}, errors.Wrap(err, types.ErrInvalidValAddress.Error())
}

evmAddress, exists := k.GetEVMAddress(ctx, valAddr)
if !exists {
Expand Down
4 changes: 2 additions & 2 deletions x/blobstream/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package keeper
import (
"context"

sdkerrors "cosmossdk.io/errors"
"cosmossdk.io/errors"
"github.com/celestiaorg/celestia-app/v3/x/blobstream/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gethcommon "github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -38,7 +38,7 @@ func (k Keeper) RegisterEVMAddress(goCtx context.Context, msg *types.MsgRegister
}

if !k.IsEVMAddressUnique(ctx, evmAddr) {
return nil, sdkerrors.Wrapf(types.ErrEVMAddressAlreadyExists, "address %s", msg.EvmAddress)
return nil, errors.Wrapf(types.ErrEVMAddressAlreadyExists, "address %s", msg.EvmAddress)
}

k.SetEVMAddress(ctx, valAddr, evmAddr)
Expand Down

0 comments on commit a0b8d54

Please sign in to comment.