Skip to content

Commit

Permalink
Update KaliBerger.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
audsssy committed Oct 25, 2023
1 parent 2d871ac commit 509ce6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KaliBerger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ contract KaliBerger is Storage {
/// @notice Escrow ERC721 NFT before making it available for purchase.
/// @param token ERC721 token address.
/// @param tokenId ERC721 tokenId.
function escrow(address token, uint256 tokenId) external payable {
function escrow(address token, uint256 tokenId, address creator) external payable {
// Confirm msg.sender is creator and owner of token
if (IERC721(token).ownerOf(tokenId) != msg.sender) revert NotAuthorized();

// Transfer ERC721 to KaliBerger
IERC721(token).safeTransferFrom(msg.sender, address(this), tokenId);

// Set creator
setCreator(token, tokenId, msg.sender);
setCreator(token, tokenId, creator);
}

/// @notice Pull ERC721 NFT from escrow when it is idle.
Expand Down

0 comments on commit 509ce6a

Please sign in to comment.