diff options
Diffstat (limited to 'core/types/transaction_signing.go')
-rw-r--r-- | core/types/transaction_signing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index 7d7b63e9f..e7eb7c5f0 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -167,7 +167,7 @@ func (s EIP155Signer) WithSignature(tx *Transaction, sig []byte) (*Transaction, cpy.data.R = new(big.Int).SetBytes(sig[:32]) cpy.data.S = new(big.Int).SetBytes(sig[32:64]) cpy.data.V = new(big.Int).SetBytes([]byte{sig[64]}) - if s.chainId.BitLen() > 0 { + if s.chainId.Sign() != 0 { cpy.data.V = big.NewInt(int64(sig[64] + 35)) cpy.data.V.Add(cpy.data.V, s.chainIdMul) } |