From 4be37e91b941db0cec1cab9c41b7e62a08f78d81 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 24 Mar 2017 22:02:08 +0100 Subject: [PATCH] core/types: ensure all EIP155 signer fields are set by deriveSigner Fixes #3819 --- core/types/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 86948b5b74..ee2f25b52c 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -40,7 +40,7 @@ var ( // deriveSigner makes a *best* guess about which signer to use. func deriveSigner(V *big.Int) Signer { if V.Sign() != 0 && isProtectedV(V) { - return EIP155Signer{chainId: deriveChainId(V)} + return NewEIP155Signer(deriveChainId(V)) } else { return HomesteadSigner{} }