Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #540 from BuxOrg/feat/BUX-477/checkGetAccessKey
Browse files Browse the repository at this point in the history
BUX-477: GetAccessKey error message
  • Loading branch information
Nazarii-4chain authored Jan 19, 2024
2 parents cb7c789 + e2b5326 commit b836d3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action_access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (c *Client) GetAccessKey(ctx context.Context, xPubID, id string) (*AccessKe
if err != nil {
return nil, err
} else if accessKey == nil {
return nil, ErrMissingXpub
return nil, ErrAccessKeyNotFound
}

// make sure this is the correct accessKey
Expand Down
3 changes: 3 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ var ErrXpubIDMisMatch = errors.New("xpub_id mismatch")
// ErrMissingXpub is when the field is required but missing
var ErrMissingXpub = errors.New("could not find xpub")

// ErrAccessKeyNotFound is when the access key not found
var ErrAccessKeyNotFound = errors.New("access key not found")

// ErrMissingLockingScript is when the field is required but missing
var ErrMissingLockingScript = errors.New("could not find locking script")

Expand Down

0 comments on commit b836d3a

Please sign in to comment.