diff --git a/contacts_test.go b/contacts_test.go index 4f6b0ba1..0c103e1a 100644 --- a/contacts_test.go +++ b/contacts_test.go @@ -63,7 +63,7 @@ func TestContactActionsRouting(t *testing.T) { }) t.Run("UpsertContact", func(t *testing.T) { - contact, err := client.UpsertContact(context.Background(), "test-id", "test@paymail.com", nil) + contact, err := client.UpsertContact(context.Background(), "test-id", "test@paymail.com", "", nil) require.NoError(t, err) require.NotNil(t, contact) }) diff --git a/http.go b/http.go index edfa4cc0..6c66be6b 100644 --- a/http.go +++ b/http.go @@ -623,8 +623,8 @@ func (wc *WalletClient) GetContacts(ctx context.Context, conditions *filter.Cont } // UpsertContact add or update contact. When adding a new contact, the system utilizes Paymail's PIKE capability to dispatch an invitation request, asking the counterparty to include the current user in their contacts. -func (wc *WalletClient) UpsertContact(ctx context.Context, paymail, fullName string, metadata map[string]any) (*models.Contact, ResponseError) { - return wc.UpsertContactForPaymail(ctx, paymail, fullName, metadata, "") +func (wc *WalletClient) UpsertContact(ctx context.Context, paymail, fullName, requesterPaymail string, metadata map[string]any) (*models.Contact, ResponseError) { + return wc.UpsertContactForPaymail(ctx, paymail, fullName, metadata, requesterPaymail) } // UpsertContactForPaymail add or update contact. When adding a new contact, the system utilizes Paymail's PIKE capability to dispatch an invitation request, asking the counterparty to include the current user in their contacts.