diff options
author | Stephen Akiki <stephen.akiki@algorand.com> | 2022-11-14 17:53:12 -0500 |
---|---|---|
committer | Stephen Akiki <stephen.akiki@algorand.com> | 2022-11-14 17:53:12 -0500 |
commit | aee00429d351b2bccd2b21731b8688af22a18106 (patch) | |
tree | 28589f97cac245473482a335d02f88c71bcf3f57 | |
parent | 44bf85270be9802a6daea73d932064f9430ea980 (diff) |
-rw-r--r-- | daemon/algod/api/client/restClient.go | 3 | ||||
-rw-r--r-- | libgoal/libgoal.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/daemon/algod/api/client/restClient.go b/daemon/algod/api/client/restClient.go index 926e86d64..81474cf01 100644 --- a/daemon/algod/api/client/restClient.go +++ b/daemon/algod/api/client/restClient.go @@ -663,7 +663,8 @@ func (client RestClient) GetParticipationKeyByID(participationID string) (respon return } -func (client RestClient) RemoveParticipationKeyByID(participationID string) (response generatedV2.ParticipationKeyResponse, err error) { +// RemoveParticipationKeyByID removes a particiption key by its ID +func (client RestClient) RemoveParticipationKeyByID(participationID string) (response model.ParticipationKeyResponse, err error) { err = client.delete(&response, fmt.Sprintf("/v2/participation/%s", participationID), nil) return diff --git a/libgoal/libgoal.go b/libgoal/libgoal.go index 7c6c88df3..82c0ac79f 100644 --- a/libgoal/libgoal.go +++ b/libgoal/libgoal.go @@ -1021,7 +1021,8 @@ func (c *Client) VerifyParticipationKey(timeout time.Duration, participationID s } } -func (c *Client) RemoveParticipationKey(participationID string) (resp generated.ParticipationKeyResponse, err error) { +// RemoveParticipationKey removes a participation key by its id +func (c *Client) RemoveParticipationKey(participationID string) (resp model.ParticipationKeyResponse, err error) { algod, err := c.ensureAlgodClient() if err != nil { return |