Skip to content

Commit

Permalink
testgen: check for tx-type instead of AuthList
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Dec 18, 2024
1 parent 8a0ae6c commit d387190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testgen/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,8 +1121,8 @@ var EthGetTransactionByHash = MethodTests{
if err != nil {
return err
}
if len(got.AuthList()) == 0 {
return fmt.Errorf("missing auth list in transaction")
if got.Type() != types.SetCodeTxType {
return fmt.Errorf("transaction is not of type %v", types.SetCodeTxType)
}
return nil
},
Expand Down

0 comments on commit d387190

Please sign in to comment.