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
This means that for this registry to be populated, each chain needs to register all the needed proto v2 types. This can be done just by silently importing the module, e.g.:
Problem Definition
Currently, we hardcode to use
protoregistry.GlobalTypes
in Textual:cosmos-sdk/x/tx/textual/any.go
Line 67 in b3c750c
This means that for this registry to be populated, each chain needs to register all the needed proto v2 types. This can be done just by silently importing the module, e.g.:
cosmos-sdk/simapp/app_v2.go
Lines 18 to 19 in f285a6d
However, with a lot of modules, this can be cumbersome and error-prone.
Proposal
Since the current SDK is using gogoproto extensively, we should add the possibility to use gogoproto's registry inside Textual.
NewTextual
calledtypeResolver
.typeResolver
will default toprotoregistry.GlobalTypes
typeResolver
. See some work done in feat: Validate Msg proto annotations #13793.The text was updated successfully, but these errors were encountered: