Skip to content

Commit

Permalink
testgen: add test for eth_blobBaseFee
Browse files Browse the repository at this point in the history
This was added upstream but not here.
  • Loading branch information
fjl committed Dec 17, 2024
1 parent bef79e3 commit 9b26a02
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions testgen/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ var AllMethods = []MethodTests{
DebugGetRawBlock,
DebugGetRawReceipts,
DebugGetRawTransaction,
EthBlobBaseFee,

// -- header requests are not in the spec yet
// EthGetHeaderByNumber,
Expand Down Expand Up @@ -1576,6 +1577,21 @@ var EthMaxPriorityFeePerGas = MethodTests{
},
}

var EthBlobBaseFee = MethodTests{
"eth_blobBaseFee",
[]Test{
{
Name: "get-current-blobfee",
About: "gets the current blob fee in wei",
Run: func(ctx context.Context, t *T) error {
var result hexutil.Big
err := t.rpc.CallContext(ctx, &result, "eth_blobBaseFee")
return err
},
},
},
}

// EthFeeHistory stores a list of all tests against the method.
var EthFeeHistory = MethodTests{
"eth_feeHistory",
Expand Down

0 comments on commit 9b26a02

Please sign in to comment.