Skip to content

Commit

Permalink
Merge pull request #36 from EspressoSystems/api-update
Browse files Browse the repository at this point in the history
Small fix
  • Loading branch information
nomaxg authored Apr 18, 2024
2 parents cd65b1e + 7b8b97a commit e8a7209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (c *Client) FetchRemainingHeadersForWindow(ctx context.Context, from uint64
// Fetches a block merkle proof at the snapshot rootHeight for the leaf at the provided HotShot height
func (c *Client) FetchBlockMerkleProof(ctx context.Context, rootHeight uint64, hotshotHeight uint64) (types.HotShotBlockMerkleProof, error) {
var res types.HotShotBlockMerkleProof
if err := c.get(ctx, &res, "state/blocks/%d+1/%d", rootHeight, hotshotHeight); err != nil {
if err := c.get(ctx, &res, "state/blocks/%d/%d", rootHeight+1, hotshotHeight); err != nil {
return types.HotShotBlockMerkleProof{}, err
}
return res, nil
Expand Down

0 comments on commit e8a7209

Please sign in to comment.