Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Oct 31, 2024
1 parent 5d24a56 commit 4335963
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ func (c *Client) ContractRevisions(id types.FileContractID) (resp []explorer.Fil
return
}

// V2Contract returns the v2 file contract with the specified ID.
func (c *Client) V2Contract(id types.FileContractID) (resp explorer.V2FileContract, err error) {
err = c.c.GET(fmt.Sprintf("/v2/contracts/%s", id), &resp)
return
}

// V2Contracts returns the v2 contracts with the specified IDs.
func (c *Client) V2Contracts(ids []types.FileContractID) (resp []explorer.V2FileContract, err error) {
err = c.c.POST("/v2/contracts", ids, &resp)
Expand Down

0 comments on commit 4335963

Please sign in to comment.