Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <huang@crypto.com>
  • Loading branch information
yihuang authored Aug 15, 2024
1 parent bf335b7 commit 5ff1259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func CallWithError(method string, params interface{}) (*Response, error) {
}

if rpcRes.Error != nil {
return nil, fmt.Errorf("%s", rpcRes.Error.Message)
return nil, errors.New(rpcRes.Error.Message)
}

return rpcRes, nil
Expand Down
2 changes: 1 addition & 1 deletion x/evm/keeper/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func DeductFees(bankKeeper types.BankKeeper, ctx sdk.Context, acc sdk.AccountI,
}
if ctx.BlockHeight() > 0 {
if err := bankKeeper.SendCoinsFromAccountToModuleVirtual(ctx, acc.GetAddress(), authtypes.FeeCollectorName, fees); err != nil {
return errorsmod.Wrapf(errortypes.ErrInsufficientFunds, "%s", err.Error())
return errorsmod.Wrap(errortypes.ErrInsufficientFunds, err.Error())
}
}
return nil
Expand Down

0 comments on commit 5ff1259

Please sign in to comment.