You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mpoke
changed the title
Payment module: LegacyMsg deprecated in favor of Msg Services
LegacyMsg in payment module deprecated in favor of Msg Services
Aug 19, 2022
For executing
MsgPayForData
messages, the payment module implements a handler function, which is added to the application's router via theRoute()
method. This is deprecated (see https://docs.cosmos.network/v0.45/building-modules/msg-services.html#amino-legacymsgs).Suggestions:
Route()
x/payment/handler.go
Further suggestions for improving code quality:
Note that these changes will make the structure of the module consistent with the SDK.
msgServer
methods tox/payment/keeper/msg_server.go
, i.e.,PayForData
methodx/payment/types/msgs.go
file that contains the two message types (i.e., MsgWirePayForData, MsgPayForData) together with their functionsThe text was updated successfully, but these errors were encountered: