mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-17 00:20:39 +00:00
Fixed incorrect recipient derived
This commit is contained in:
parent
06697775d1
commit
c28116cb3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue