-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: turn MsgsV2 into ReflectMessages to make it less confusing #19839
Changes from all commits
deb6a5d
79fa103
640032d
7528257
52f4031
3aed41a
5059ff8
a88a4ae
bed530a
75e481d
97beb4d
fac475f
782d649
2390f58
3013237
d5106c2
a975d34
2fbab1c
c0a3b06
4f3c49c
e31f02a
1258d41
fbe1c4b
6d5bd87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import ( | |
|
||
"github.com/stretchr/testify/require" | ||
"github.com/stretchr/testify/suite" | ||
protov2 "google.golang.org/protobuf/proto" | ||
"google.golang.org/protobuf/reflect/protoreflect" | ||
|
||
_ "cosmossdk.io/api/cosmos/counter/v1" | ||
_ "cosmossdk.io/api/cosmos/crypto/secp256k1" | ||
|
@@ -77,7 +77,7 @@ var ( | |
|
||
func (tx testTx) GetMsgs() []sdk.Msg { return nil } | ||
|
||
func (tx testTx) GetMsgsV2() ([]protov2.Message, error) { return nil, nil } | ||
func (tx testTx) GetReflectMessages() ([]protoreflect.Message, error) { return nil, nil } | ||
|
||
func (tx testTx) ValidateBasic() error { return nil } | ||
|
||
|
@@ -93,7 +93,7 @@ func (sigErrTx) Size() int64 { return 0 } | |
|
||
func (sigErrTx) GetMsgs() []sdk.Msg { return nil } | ||
|
||
func (sigErrTx) GetMsgsV2() ([]protov2.Message, error) { return nil, nil } | ||
func (sigErrTx) GetReflectMessages() ([]protoreflect.Message, error) { return nil, nil } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, the Would you like assistance in creating tests for the |
||
|
||
func (sigErrTx) ValidateBasic() error { return nil } | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ import ( | |
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
"google.golang.org/protobuf/proto" | ||
"google.golang.org/protobuf/reflect/protoreflect" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/mempool" | ||
|
@@ -20,7 +20,7 @@ func (n nonVerifiableTx) GetMsgs() []sdk.Msg { | |
panic("not implemented") | ||
} | ||
|
||
func (n nonVerifiableTx) GetMsgsV2() ([]proto.Message, error) { | ||
func (n nonVerifiableTx) GetReflectMessages() ([]protoreflect.Message, error) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method Would you like assistance in implementing the actual logic for |
||
panic("not implemented") | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjust the indentation of the unordered list items to maintain consistency and readability in the document.
Committable suggestion