Unify the code

This commit is contained in:
2023-06-09 18:52:37 -05:00
parent 8a53daecd4
commit 1969d1bab2
+1 -4
View File
@@ -243,10 +243,7 @@ func (t *Transaction) From(ctx context.Context, args BlockNumberArgs) (*Account,
if err != nil || tx == nil {
return nil, err
}
var signer types.Signer = types.HomesteadSigner{}
if tx.Protected() {
signer = types.NewEIP155Signer(tx.ChainId())
}
signer := eth.SignerForTx(tx)
from, _ := types.Sender(signer, tx)
return &Account{