Fix for getTransactionReceipt returning empty 'from' address. #242
@ -243,10 +243,7 @@ func (t *Transaction) From(ctx context.Context, args BlockNumberArgs) (*Account,
|
|||||||
if err != nil || tx == nil {
|
if err != nil || tx == nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var signer types.Signer = types.HomesteadSigner{}
|
signer := eth.SignerForTx(tx)
|
||||||
if tx.Protected() {
|
|
||||||
signer = types.NewEIP155Signer(tx.ChainId())
|
|
||||||
}
|
|
||||||
from, _ := types.Sender(signer, tx)
|
from, _ := types.Sender(signer, tx)
|
||||||
|
|
||||||
return &Account{
|
return &Account{
|
||||||
|
Loading…
Reference in New Issue
Block a user