refactor(codec)!: update codec to x/tx v0.6.0 (#15873)

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
This commit is contained in:
Aaron Craelius
2023-04-28 08:13:28 +00:00
committed by GitHub
co-authored by Matt Kocubinski
parent 3936030e16
commit cb1641c1b5
36 changed files with 409 additions and 336 deletions
+3 -4
View File
@@ -81,13 +81,12 @@ func NewRootCmd() *cobra.Command {
// This needs to go after ReadFromClientConfig, as that function
// sets the RPC client needed for SIGN_MODE_TEXTUAL.
opts, err := txmodule.NewSignModeOptionsWithMetadataQueryFn(txmodule.NewGRPCCoinMetadataQueryFn(initClientCtx))
if err != nil {
return err
txConfigOpts := tx.ConfigOptions{
TextualCoinMetadataQueryFn: txmodule.NewGRPCCoinMetadataQueryFn(initClientCtx),
}
txConfigWithTextual := tx.NewTxConfigWithOptions(
codec.NewProtoCodec(encodingConfig.InterfaceRegistry),
opts,
txConfigOpts,
)
initClientCtx = initClientCtx.WithTxConfig(txConfigWithTextual)