cmd/workload: fix getBlockTransactionCountByNumber

This commit is contained in:
Felix Lange 2025-02-26 12:51:04 +01:00
parent f804377579
commit 509548977f

View file

@ -298,7 +298,7 @@ func (c *client) getBlockTransactionCountByHash(ctx context.Context, block commo
func (c *client) getBlockTransactionCountByNumber(ctx context.Context, block uint64) (uint64, error) { func (c *client) getBlockTransactionCountByNumber(ctx context.Context, block uint64) (uint64, error) {
var r hexutil.Uint64 var r hexutil.Uint64
err := c.RPC.CallContext(ctx, &r, "eth_getBlockTransactionCountByNumber", block) err := c.RPC.CallContext(ctx, &r, "eth_getBlockTransactionCountByNumber", hexutil.Uint64(block))
return uint64(r), err return uint64(r), err
} }