diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-21 21:46:50 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-21 21:46:50 +0800 |
commit | c28116cb3b485f01aba852fdc9559a2495db6654 (patch) | |
tree | c7221d6ae7de465ccd648a2579a0968510a5776b | |
parent | 06697775d1edc3263a7915cee02a94bea488494c (diff) | |
download | dexon-c28116cb3b485f01aba852fdc9559a2495db6654.tar.gz dexon-c28116cb3b485f01aba852fdc9559a2495db6654.tar.zst dexon-c28116cb3b485f01aba852fdc9559a2495db6654.zip |
Fixed incorrect recipient derived
-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 391fb46f5..7aef5ce94 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -80,7 +80,7 @@ func (self *Transaction) From() (common.Address, error) { return common.Address{}, errors.New("invalid public key") } var addr common.Address - copy(addr[:], crypto.Sha3(pubkey[1:])) + copy(addr[:], crypto.Sha3(pubkey[1:])[12:]) return addr, nil } |