From fa89eec7adcb4d33dc6403a5d7e887ac15f3c058 Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaurym@users.noreply.github.com> Date: Mon, 20 Mar 2023 09:13:27 +0100 Subject: [PATCH] feat(x/tx): Support gogo registry in Textual (#15302) --- go.mod | 2 +- go.sum | 4 ++-- simd/cmd/root.go | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 40550ead9486..260d64d69a8f 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( cloud.google.com/go/storage v1.29.0 // indirect cosmossdk.io/collections v0.0.0-20230309163709-87da587416ba // indirect cosmossdk.io/errors v1.0.0-beta.7 // indirect - cosmossdk.io/x/tx v0.3.0 // indirect + cosmossdk.io/x/tx v0.3.1-0.20230320072322-5fceb7c0495f // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect diff --git a/go.sum b/go.sum index 0fbb348305e5..e9f583e52f80 100644 --- a/go.sum +++ b/go.sum @@ -206,8 +206,8 @@ cosmossdk.io/math v1.0.0-rc.0 h1:ml46ukocrAAoBpYKMidF0R2tQJ1Uxfns0yH8wqgMAFc= cosmossdk.io/math v1.0.0-rc.0/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= cosmossdk.io/store v0.1.0-alpha.1 h1:NGomhLUXzAxvK4OF8+yP6eNUG5i4LwzOzx+S494pTCg= cosmossdk.io/store v0.1.0-alpha.1/go.mod h1:kmCMbhrleCZ6rDZPY/EGNldNvPebFNyVPFYp+pv05/k= -cosmossdk.io/x/tx v0.3.0 h1:AgVYy6bxL3XqEV7RLyxFh1uT+wywsrbgVMmYnL3FgWM= -cosmossdk.io/x/tx v0.3.0/go.mod h1:ELY0bP2SmOqyffJFp00g979xsI1zBdmc55A6JCi1Qe8= +cosmossdk.io/x/tx v0.3.1-0.20230320072322-5fceb7c0495f h1:yXEE3D6L0Ykwlp4FuS1SoHgT9vZ8brBJ/dkHezXBU9o= +cosmossdk.io/x/tx v0.3.1-0.20230320072322-5fceb7c0495f/go.mod h1:V/7DjCSReJ7LBBYrNtVFUec7t63hVNyFh0vBXOBK2Yg= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= diff --git a/simd/cmd/root.go b/simd/cmd/root.go index f572b81545f7..f98002d6ad5f 100644 --- a/simd/cmd/root.go +++ b/simd/cmd/root.go @@ -85,10 +85,14 @@ func NewRootCmd() *cobra.Command { // TODO Currently, the TxConfig below doesn't include Textual, so // an error will arise when using the --textual flag. // ref: https://github.com/cosmos/cosmos-sdk/issues/11970 + txt, err := txmodule.NewTextualWithGRPCConn(initClientCtx) + if err != nil { + return err + } txConfigWithTextual := tx.NewTxConfigWithTextual( codec.NewProtoCodec(encodingConfig.InterfaceRegistry), encodingConfig.TxConfig.SignModeHandler().Modes(), - txmodule.NewTextualWithGRPCConn(initClientCtx), + txt, ) initClientCtx = initClientCtx.WithTxConfig(txConfigWithTextual)