Skip to content

Commit

Permalink
feat(BUX-645): adjust xpub parameter name (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored Mar 19, 2024
1 parent 7f45633 commit cdf9527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions transports/http_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ func (h *TransportHTTP) AdminGetPaymailsCount(ctx context.Context, conditions ma
}

// AdminCreatePaymail create a new paymail for a xpub
func (h *TransportHTTP) AdminCreatePaymail(ctx context.Context, xPubID string, address string, publicName string, avatar string) (*models.PaymailAddress, ResponseError) {
func (h *TransportHTTP) AdminCreatePaymail(ctx context.Context, rawXPub string, address string, publicName string, avatar string) (*models.PaymailAddress, ResponseError) {
jsonStr, err := json.Marshal(map[string]interface{}{
FieldXpubID: xPubID,
FieldXpubKey: rawXPub,
FieldAddress: address,
FieldPublicName: publicName,
FieldAvatar: avatar,
Expand Down
2 changes: 1 addition & 1 deletion transports/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type AdminService interface {
AdminGetPaymail(ctx context.Context, address string) (*models.PaymailAddress, ResponseError)
AdminGetPaymails(ctx context.Context, conditions map[string]interface{}, metadata *models.Metadata, queryParams *QueryParams) ([]*models.PaymailAddress, ResponseError)
AdminGetPaymailsCount(ctx context.Context, conditions map[string]interface{}, metadata *models.Metadata) (int64, ResponseError)
AdminCreatePaymail(ctx context.Context, xPubID string, address string, publicName string, avatar string) (*models.PaymailAddress, ResponseError)
AdminCreatePaymail(ctx context.Context, rawXPub string, address string, publicName string, avatar string) (*models.PaymailAddress, ResponseError)
AdminDeletePaymail(ctx context.Context, address string) ResponseError
AdminGetTransactions(ctx context.Context, conditions map[string]interface{}, metadata *models.Metadata, queryParams *QueryParams) ([]*models.Transaction, ResponseError)
AdminGetTransactionsCount(ctx context.Context, conditions map[string]interface{}, metadata *models.Metadata) (int64, ResponseError)
Expand Down

0 comments on commit cdf9527

Please sign in to comment.