Skip to content

Commit

Permalink
Add test for genesis gingerbread block activation
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy committed Feb 1, 2024
1 parent f8843ec commit fe0c2ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e_test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,10 @@ func TestEthersJSCompatibilityDisableAfterGingerbread(t *testing.T) {
defer cancel()

result = make(map[string]interface{})
err = network[0].WsClient.GetRPCClient().CallContext(ctx, &result, "eth_getBlockByNumber", "latest", true)
err = network[0].WsClient.GetRPCClient().CallContext(ctx, &result, "eth_getBlockByNumber", "0x0", true)
require.NoError(t, err)

fmt.Printf("baseFee %v\n", result["baseFeePerGas"])
// After Gingerbread, gasLimit should be returned directly from the header, even if
// RPCEthCompatibility is off, since it is now part of the header hash.
_, ok := result["gasLimit"]
Expand Down

0 comments on commit fe0c2ea

Please sign in to comment.