mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Update validation.go: use types.Sender
This commit is contained in:
parent
fa5019de19
commit
8fc2d7f6be
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ type ValidationOptionsWithState struct {
|
|||
// rules without duplicating code and running the risk of missed updates.
|
||||
func ValidateTransactionWithState(tx *types.Transaction, signer types.Signer, opts *ValidationOptionsWithState) error {
|
||||
// Ensure the transaction adheres to nonce ordering
|
||||
from, err := signer.Sender(tx) // already validated (and cached), but cleaner to check
|
||||
from, err := types.Sender(signer, tx) // already validated (and cached), but cleaner to check
|
||||
if err != nil {
|
||||
log.Error("Transaction sender recovery failed", "err", err)
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue