From b718f7dcfdfc9614120280a26684bd214c4801d4 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Sun, 3 May 2026 21:22:55 +0800 Subject: [PATCH] core/types: minor opt decodeSignature --- core/types/transaction_signing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index 5854af07c5..c3fd67b760 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -472,7 +472,7 @@ func decodeSignature(sig []byte) (r, s, v *big.Int, err error) { } r = new(big.Int).SetBytes(sig[:32]) s = new(big.Int).SetBytes(sig[32:64]) - v = new(big.Int).SetBytes([]byte{sig[64] + 27}) + v = big.NewInt(int64(sig[64] + 27)) return r, s, v, nil }