docs: Spelling error. (#22872)

Signed-off-by: RiceChuan <lc582041246@gmail.com>
This commit is contained in:
RiceChuan 2024-12-16 07:50:19 +08:00 committed by GitHub
parent 615226093e
commit a7372d932e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -241,10 +241,10 @@ func checkMultipleSigners(tx authsigning.Tx) error {
return nil
}
// Sign signs a given tx with a named key. The bytes signed over are canconical.
// Sign signs a given tx with a named key. The bytes signed over are canonical.
// The resulting signature will be added to the transaction builder overwriting the previous
// ones if overwrite=true (otherwise, the signature will be appended).
// Signing a transaction with mutltiple signers in the DIRECT mode is not supported and will
// Signing a transaction with multiple signers in the DIRECT mode is not supported and will
// return an error.
// An error is returned upon failure.
func Sign(ctx client.Context, txf Factory, name string, txBuilder client.TxBuilder, overwriteSig bool) error {