88 sdk "github.com/cosmos/cosmos-sdk/types"
99 sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
1010
11- "github.com/ignite/network/pkg/errors"
1211 "github.com/ignite/network/x/profile/types"
1312)
1413
@@ -23,7 +22,7 @@ func (k msgServer) UpdateValidatorDescription(ctx context.Context, msg *types.Ms
2322
2423 // Check if the validator address is already in the store
2524 validator , err := k .Validator .Get (ctx , msg .Address )
26- if errors .IsOf (err , collections .ErrNotFound ) {
25+ if errorsmod .IsOf (err , collections .ErrNotFound ) {
2726 validator = types.Validator {
2827 Address : msg .Address ,
2928 Description : types.ValidatorDescription {},
@@ -48,7 +47,7 @@ func (k msgServer) UpdateValidatorDescription(ctx context.Context, msg *types.Ms
4847 validator .Description .SecurityContact = msg .SecurityContact
4948 }
5049
51- if errors .IsOf (err , collections .ErrNotFound ) {
50+ if errorsmod .IsOf (err , collections .ErrNotFound ) {
5251 err = sdk .UnwrapSDKContext (ctx ).EventManager ().EmitTypedEvent (
5352 & types.EventValidatorCreated {
5453 Address : validator .Address ,
@@ -83,7 +82,7 @@ func (k msgServer) AddValidatorOperatorAddress(ctx context.Context, msg *types.M
8382
8483 // get the current validator to eventually overwrite description and add opAddr
8584 validatorStore , err := k .Validator .Get (ctx , valAddr )
86- if ! errors .IsOf (err , collections .ErrNotFound ) {
85+ if ! errorsmod .IsOf (err , collections .ErrNotFound ) {
8786 validator .Description = validatorStore .Description
8887 validator = validatorStore .AddValidatorOperatorAddress (opAddr )
8988 }
@@ -100,7 +99,7 @@ func (k msgServer) AddValidatorOperatorAddress(ctx context.Context, msg *types.M
10099 }
101100
102101 sdkCtx := sdk .UnwrapSDKContext (ctx )
103- if ! errors .IsOf (err , collections .ErrNotFound ) {
102+ if ! errorsmod .IsOf (err , collections .ErrNotFound ) {
104103 err = sdkCtx .EventManager ().EmitTypedEvent (
105104 & types.EventValidatorOperatorAddressesUpdated {
106105 Address : validator .Address ,
0 commit comments