Skip to content

Commit

Permalink
refactor: improve error message prepositions
Browse files Browse the repository at this point in the history
  • Loading branch information
da1suk8 committed Apr 25, 2024
1 parent 1ce21a0 commit 58714d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/wasm/keeper/msg_dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ func (d MessageDispatcher) DispatchSubmessages(ctx sdk.Context, contractAddr sdk
// https://github.com/Finschia/finschia-sdk/pull/1336, https://github.com/Finschia/finschia-sdk/pull/1340
if stargateMsg := msg.Msg.Stargate; stargateMsg != nil {
if strings.HasPrefix(stargateMsg.TypeURL, "/lbm.fswap.v1") {
return nil, sdkerrors.Wrap(types.ErrUnsupportedForContract, "fswap not supported of Stargate")
return nil, sdkerrors.Wrap(types.ErrUnsupportedForContract, "fswap not supported by Stargate")
}
if strings.HasPrefix(stargateMsg.TypeURL, "/lbm.fbridge.v1") {
return nil, sdkerrors.Wrap(types.ErrUnsupportedForContract, "fbridge not supported of Stargate")
return nil, sdkerrors.Wrap(types.ErrUnsupportedForContract, "fbridge not supported by Stargate")
}
}

Expand Down

0 comments on commit 58714d1

Please sign in to comment.