Skip to content

Commit

Permalink
Removed transfer function
Browse files Browse the repository at this point in the history
  • Loading branch information
leoloco committed May 6, 2024
1 parent 4c285c2 commit 395b37f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions smart-contracts/assembly/contracts/NFT/NFT-internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,6 @@ export function _transferFrom(from: string, to: string, tokenId: u256): void {
_update(to, tokenId, from);
}

export function _transfer(to: string, tokenId: u256): void {
assert(Storage.has(ownerKey(tokenId)), 'Nonexistent token');
const from = Context.caller().toString();
assert(_ownerOf(tokenId) == from, 'Unauthorized caller');
assert(to != '', 'Unauthorized to');
_update(to, tokenId, from);
}

/**
* TOD0: Implement the safeTransferFrom function.
* To do so you need to verify that the recipient is a contract and supports the ERC721Receiver interface.
Expand Down

0 comments on commit 395b37f

Please sign in to comment.