aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-21 21:46:50 +0800
committerobscuren <geffobscura@gmail.com>2015-03-21 21:46:50 +0800
commitc28116cb3b485f01aba852fdc9559a2495db6654 (patch)
treec7221d6ae7de465ccd648a2579a0968510a5776b
parent06697775d1edc3263a7915cee02a94bea488494c (diff)
downloaddexon-c28116cb3b485f01aba852fdc9559a2495db6654.tar.gz
dexon-c28116cb3b485f01aba852fdc9559a2495db6654.tar.zst
dexon-c28116cb3b485f01aba852fdc9559a2495db6654.zip
Fixed incorrect recipient derived
-rw-r--r--core/types/transaction.go2
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
}