Merge pull request #3820 from fjl/core-types-eip155-chainid-mul

core/types: ensure all EIP155 signer fields are set by deriveSigner
This commit is contained in:
Péter Szilágyi 2017-03-27 00:22:34 +03:00 committed by GitHub
commit 7419d0c382

View File

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