diff options
author | Felix Lange <fjl@twurst.com> | 2017-03-25 05:02:08 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-03-25 05:06:10 +0800 |
commit | 4be37e91b941db0cec1cab9c41b7e62a08f78d81 (patch) | |
tree | 49727c86e9e295a6157fbf905f5eeabf991cd500 /core | |
parent | 1018bf6a00be475cb9af2812c1f61fa8530068a3 (diff) | |
download | dexon-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.gz dexon-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.zst dexon-4be37e91b941db0cec1cab9c41b7e62a08f78d81.zip |
core/types: ensure all EIP155 signer fields are set by deriveSigner
Fixes #3819
Diffstat (limited to 'core')
-rw-r--r-- | core/types/transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index 86948b5b7..ee2f25b52 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{} } |