Skip to content

Commit

Permalink
Fixed incorrect recipient derived
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Mar 21, 2015
1 parent 0669777 commit c28116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c28116c

Please sign in to comment.