Skip to content

Commit

Permalink
fix incorrect error
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 22, 2024
1 parent 9be10dd commit 26aa941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/contractmanager/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ func (k Keeper) ResubmitFailure(goCtx context.Context, req *types.MsgResubmitFai

sender, err := sdk.AccAddressFromBech32(req.Sender)
if err != nil {
return nil, errors.Wrap(sdkerrors.ErrNotFound, "sender in resubmit request is not in correct address format")
return nil, errors.Wrap(sdkerrors.ErrInvalidAddress, "sender in resubmit request is not in correct address format")
}

if !k.wasmKeeper.HasContractInfo(ctx, sender) {
return nil, errors.Wrap(sdkerrors.ErrNotFound, "not a contract address tried to resubmit")
}
Expand Down

0 comments on commit 26aa941

Please sign in to comment.