Skip to content

Commit

Permalink
hit github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit0617 committed Aug 6, 2024
1 parent 06ac5c0 commit c0e8aaf
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 @@ -526,13 +526,10 @@ func getUncleCountByBlockIdentifier(c *fiber.Ctx) error {
}

func getUncleCountByBlockHash(c *fiber.Ctx, hash string) error {
blockHash := common.HexToHash(hash)
log.Println(blockHash)

var ctx = context.Background()
var uncleCount string

err := rpcClient.CallContext(ctx, &uncleCount, "eth_getUncleCountByBlockHash", blockHash)
err := rpcClient.CallContext(ctx, &uncleCount, "eth_getUncleCountByBlockHash", hash)
if err != nil {
log.Print("Error fetching uncle count:", err)
}
Expand Down

0 comments on commit c0e8aaf

Please sign in to comment.