Skip to content

Commit

Permalink
docs(x/auth): improve godoc for GetSigningTxData (#16933)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski authored Jul 11, 2023
1 parent 8bef7fa commit 1b0fcdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/auth/tx/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import (
)

// GetSigningTxData returns an x/tx/signing.TxData representation of a transaction for use in the signing
// API defined in x/tx.
// API defined in x/tx. The reason for all of this conversion is that x/tx depends on the protoreflect API
// defined in google.golang.org/protobuf while x/auth/tx depends on the legacy proto API defined in
// github.com/gogo/protobuf and the downstream SDK fork of that library, github.com/cosmos/gogoproto.
// Therefore we need to convert between the two APIs.
func (w *wrapper) GetSigningTxData() txsigning.TxData {
body := w.tx.Body
authInfo := w.tx.AuthInfo
Expand Down

0 comments on commit 1b0fcdc

Please sign in to comment.