mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
cmd/workload: fix getBlockTransactionCountByNumber
This commit is contained in:
parent
f804377579
commit
509548977f
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ func (c *client) getBlockTransactionCountByHash(ctx context.Context, block commo
|
|||
|
||||
func (c *client) getBlockTransactionCountByNumber(ctx context.Context, block uint64) (uint64, error) {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue