docs: fix function name and comment (#23372)

Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
luchenhan 2025-01-14 20:56:31 +09:00 committed by GitHub
parent d2aa3c25be
commit 5fb5ddaa1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -2204,7 +2204,7 @@ func TestABCI_ProcessProposal_PanicRecovery(t *testing.T) {
})
}
// TestABCI_Proposal_Reset_State ensures that state is reset between runs of
// TestABCI_Proposal_Reset_State_Between_Calls ensures that state is reset between runs of
// PrepareProposal and ProcessProposal in case they are called multiple times.
// This is only valid for heights > 1, given that on height 1 we always set the
// state to be deliverState.

View File

@ -115,7 +115,7 @@ func encodeTextTx(tx Tx) ([]byte, error) {
return textMarshalOptions.Marshal(wTx.Tx)
}
// decodeJsonTx decodes transaction bytes into an apitx.Tx structure using JSON format.
// decodeTextTx decodes transaction bytes into an apitx.Tx structure using TEXT format.
func decodeTextTx(cdc codec.BinaryCodec, decoder Decoder) txDecoder {
return func(txBytes []byte) (Tx, error) {
jsonTx := new(txv1beta1.Tx)

View File

@ -332,7 +332,7 @@ func getPubKeyUnsafe(device SECP256K1, path hd.BIP44Params) (types.PubKey, error
return options.createPubkey(compressedPublicKey), nil
}
// getPubKeyAddr reads the pubkey and the address from a ledger device.
// getPubKeyAddrSafe reads the pubkey and the address from a ledger device.
// This function is marked as Safe as it will require user confirmation and
// account and index will be shown in the device.
//