fix(x/auth/tx): JSON TX encoding/decoding (#20803)
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/stretchr/testify/suite"
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
|
||||
"cosmossdk.io/math"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
"github.com/cosmos/cosmos-sdk/testutil/testdata"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
@@ -35,7 +37,8 @@ func (s *testMsgSuite) TestMsgTypeURL() {
|
||||
}
|
||||
|
||||
func (s *testMsgSuite) TestGetMsgFromTypeURL() {
|
||||
msg := new(testdata.TestMsg)
|
||||
msg := testdata.NewTestMsg()
|
||||
msg.DecField = math.LegacyZeroDec()
|
||||
cdc := codec.NewProtoCodec(testdata.NewTestInterfaceRegistry())
|
||||
|
||||
result, err := sdk.GetMsgFromTypeURL(cdc, "/testpb.TestMsg")
|
||||
|
||||
Reference in New Issue
Block a user