Skip to content

Commit c28116c

Browse files
committed
Fixed incorrect recipient derived
1 parent 0669777 commit c28116c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/types/transaction.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (self *Transaction) From() (common.Address, error) {
8080
return common.Address{}, errors.New("invalid public key")
8181
}
8282
var addr common.Address
83-
copy(addr[:], crypto.Sha3(pubkey[1:]))
83+
copy(addr[:], crypto.Sha3(pubkey[1:])[12:])
8484
return addr, nil
8585
}
8686

0 commit comments

Comments
 (0)