From 5f2880359591e54d63ec2a3c35fcc1fb37c8988e Mon Sep 17 00:00:00 2001 From: Morgan Date: Wed, 31 Jul 2024 03:48:12 +0200 Subject: [PATCH] ci: fix backwards incompatible change (#2644) https://github.com/gnolang/gno/pull/2612 for some reason only had two checks. Hopefully this has changed with the latest changes to CI. --- tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go b/tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go index ccf2104a8d3..3e89515294d 100644 --- a/tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go +++ b/tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go @@ -15,10 +15,7 @@ import ( func (privKey PrivKeySecp256k1) Sign(msg []byte) ([]byte, error) { priv, _ := btcec.PrivKeyFromBytes(privKey[:]) - sig, err := ecdsa.SignCompact(priv, crypto.Sha256(msg), false) // ref uncompressed pubkey - if err != nil { - return nil, err - } + sig := ecdsa.SignCompact(priv, crypto.Sha256(msg), false) // ref uncompressed pubkey // remove compact sig recovery code byte at the beginning return sig[1:], nil