Skip to content

Conversation

@AntonioVentilii
Copy link
Collaborator

Motivation

Like the other methods, we create an API service to call method transfer of ExtV2TokenCanister.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review December 1, 2025 08:58
@AntonioVentilii AntonioVentilii requested review from a team as code owners December 1, 2025 08:58
Copilot AI review requested due to automatic review settings December 1, 2025 08:58
Copilot finished reviewing on behalf of AntonioVentilii December 1, 2025 09:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new API service function to call the transfer method of the EXT v2 token canister, enabling NFT transfers within a collection. The implementation follows existing patterns in the codebase for handling identity validation and parameter ordering.

Key changes:

  • Implements the transfer API function that wraps the canister's transfer method
  • Adds comprehensive test coverage including success and error cases
  • Improves JSDoc consistency by reordering parameters in existing documentation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/frontend/src/icp/api/ext-v2-token.api.ts Adds the transfer function to enable NFT transfers; also fixes JSDoc parameter ordering in balance and getTokensByOwner
src/frontend/src/tests/icp/api/ext-v2-token.api.spec.ts Adds test suite for the new transfer function covering success and nullish identity error cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AntonioVentilii AntonioVentilii added this pull request to the merge queue Dec 1, 2025
Merged via the queue into main with commit 1cc9472 Dec 1, 2025
79 checks passed
@AntonioVentilii AntonioVentilii deleted the feat-frontend/Service-to-call-the-transfer-method-of-EXT-token-canister branch December 1, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants