Skip to content

Commit

Permalink
hit github release action once more
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit0617 committed Aug 6, 2024
1 parent c0e8aaf commit 66a7e19
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,10 @@ func getBlockTransactionCountByIdentifier(c *fiber.Ctx) error {

// getBlockTransactionCountByBlockHash retrieves block transaction count by block hash and returns it as JSON.
func getBlockTransactionCountByBlockHash(c *fiber.Ctx, hash string) error {
blockHash := common.HexToHash(hash)
log.Println(blockHash)

var ctx = context.Background()
var blockTransactionCount string

err := rpcClient.CallContext(ctx, &blockTransactionCount, "eth_getBlockTransactionCountByHash", blockHash)
err := rpcClient.CallContext(ctx, &blockTransactionCount, "eth_getBlockTransactionCountByHash", hash)
if err != nil {
log.Print("Error fetching block transaction count:", err)
}
Expand Down

0 comments on commit 66a7e19

Please sign in to comment.