docs(x/auth): improve godoc for GetSigningTxData (#16933)
This commit is contained in:
parent
8bef7fa82e
commit
1b0fcdc9f0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user