From 536fe3f7064987d52fb2545cf870ade8d60a50f4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 01:30:41 +0100 Subject: [PATCH] docs: fix the outdated description of `transaction.Msg` (backport #23409) (#23425) Co-authored-by: SuiYuan --- docs/build/building-modules/02-messages-and-queries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/build/building-modules/02-messages-and-queries.md b/docs/build/building-modules/02-messages-and-queries.md index fc7c6e29a126..2b519c26c00f 100644 --- a/docs/build/building-modules/02-messages-and-queries.md +++ b/docs/build/building-modules/02-messages-and-queries.md @@ -38,10 +38,10 @@ https://github.com/cosmos/cosmos-sdk/blob/28fa3b8/x/bank/proto/cosmos/bank/v1bet ### `transaction.Msg` Interface -`transaction.Msg` is an alias of `proto.Message`. +`transaction.Msg` uses structural types to define the interface for a message. ```go reference -https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L8 +https://github.com/cosmos/cosmos-sdk/blob/main/core/transaction/transaction.go#L4-L9 ``` Signers from the `GetSigners()` call is automated via a protobuf annotation.