From c24651813761e9f869767160d08c75dc631c8f8c Mon Sep 17 00:00:00 2001 From: JohnBonny <158583902+JohnBonny@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:45:33 +0100 Subject: [PATCH 1/4] Update codec.go --- codec/testutil/codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/testutil/codec.go b/codec/testutil/codec.go index c3c14ee1f40e..5f1cf1fbd23b 100644 --- a/codec/testutil/codec.go +++ b/codec/testutil/codec.go @@ -58,7 +58,7 @@ func (o CodecOptions) NewCodec() *codec.ProtoCodec { return codec.NewProtoCodec(o.NewInterfaceRegistry()) } -// GetAddressCodec returns the address codec. If not address codec was provided it'll create a new one based on the +// GetAddressCodec returns the address codec. If no address codec was provided it'll create a new one based on the // bech32 prefix. func (o CodecOptions) GetAddressCodec() coreaddress.Codec { if o.AddressCodec != nil { From 790a345d145586e1d144618bf4a1195ffbd48a47 Mon Sep 17 00:00:00 2001 From: JohnBonny <158583902+JohnBonny@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:19:11 +0100 Subject: [PATCH 2/4] Update pre-commit --- contrib/githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/githooks/pre-commit b/contrib/githooks/pre-commit index 1913defd4a66..f04163bb75ea 100755 --- a/contrib/githooks/pre-commit +++ b/contrib/githooks/pre-commit @@ -23,7 +23,7 @@ f_check_cmds() { f_check_cmds if [[ $STAGED_GO_FILES != "" ]]; then - f_echo_stderr "[pre-commit] fmt'ing staged files..." + f_echo_stderr "[pre-commit] formatting staged files..." for file in $STAGED_GO_FILES; do if [[ $file =~ vendor/ ]] || [[ $file =~ tests/mocks/ ]] || [[ $file =~ \.pb\.go ]]; then continue From 7c7e0cc990065b20aec5116bbff7c55b37badc4f Mon Sep 17 00:00:00 2001 From: JohnBonny <158583902+JohnBonny@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:42:12 +0100 Subject: [PATCH 3/4] Update secp256k1.h --- .../internal/secp256k1/libsecp256k1/include/secp256k1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h index 76af8396918e..a808d4cb5a96 100644 --- a/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h +++ b/crypto/keys/secp256k1/internal/secp256k1/libsecp256k1/include/secp256k1.h @@ -534,7 +534,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul( * uniformly random 32-byte arrays, or equal to zero. 1 otherwise. * Args: ctx: pointer to a context object initialized for validation * (cannot be NULL). - * In/Out: pubkey: pointer to a public key obkect. + * In/Out: pubkey: pointer to a public key object. * In: tweak: pointer to a 32-byte tweak. */ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul( From e2ae5f0f92ad58a88a534221be48871a6a35c996 Mon Sep 17 00:00:00 2001 From: JohnBonny <158583902+JohnBonny@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:56:09 +0100 Subject: [PATCH 4/4] Update multisignature.go --- crypto/types/multisig/multisignature.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/types/multisig/multisignature.go b/crypto/types/multisig/multisignature.go index f6e2b372e0cc..7d4a2d17cba4 100644 --- a/crypto/types/multisig/multisignature.go +++ b/crypto/types/multisig/multisignature.go @@ -36,7 +36,7 @@ func getIndex(pk types.PubKey, keys []types.PubKey) int { } // AddSignature adds a signature to the multisig, at the corresponding index. The index must -// represent the pubkey index in the LegacyAmingPubKey structure, which verifies this signature. +// represent the pubkey index in the LegacyAminoPubKey structure, which verifies this signature. // If the signature already exists, replace it. func AddSignature(mSig *signing.MultiSignatureData, sig signing.SignatureData, index int) { newSigIndex := mSig.BitArray.NumTrueBitsBefore(index)