core/types: minor opt decodeSignature

This commit is contained in:
Weixie Cui 2026-05-03 21:22:55 +08:00
parent 19dc690af8
commit b718f7dcfd

View file

@ -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
}