Skip to content

Commit

Permalink
refactor error strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Jan 13, 2025
1 parent a72b3ef commit 2fb8d5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/fungible/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,7 @@ func (k Keeper) CallEVM(
errMessage := types.EvmErrorMessage(method, contract, args)
errMessage = types.EvmErrorMessageAddErrorString(errMessage, err.Error())
// if it is a revert error then add the revert reason
var revertErr *evmtypes.RevertError
ok := errors.As(err, &revertErr)
revertErr, ok := err.(*evmtypes.RevertError)
if ok {
errMessage = types.EvmErrorMessageAddRevertReason(
errMessage,
Expand Down

0 comments on commit 2fb8d5d

Please sign in to comment.