mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
Merge ba0e545975 into a0aa071ca6
This commit is contained in:
commit
f076ad9298
1 changed files with 1 additions and 2 deletions
|
|
@ -90,8 +90,7 @@ func Sender(signer Signer, tx *Transaction) (common.Address, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.Address{}, err
|
return common.Address{}, err
|
||||||
}
|
}
|
||||||
var addr common.Address
|
addr := crypto.PubkeyToAddress(*crypto.ToECDSAPub(pubkey))
|
||||||
copy(addr[:], crypto.Keccak256(pubkey[1:])[12:])
|
|
||||||
tx.from.Store(sigCache{signer: signer, from: addr})
|
tx.from.Store(sigCache{signer: signer, from: addr})
|
||||||
return addr, nil
|
return addr, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue