Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

POAP Update #36

Open
koolamusic opened this issue Aug 11, 2022 · 0 comments · May be fixed by #37
Open

POAP Update #36

koolamusic opened this issue Aug 11, 2022 · 0 comments · May be fixed by #37

Comments

@koolamusic
Copy link
Member

Current State
/**
* @dev Mints the POAP token _tokenId to _receiver.
*
* @param
* _eventId => The event for which the token was minted.
* _receiver => Address receiving the token.
* _tokenId => Token to be minted.
*/
function transferToken(
uint256 _eventId,
address _receiver,
uint256 _tokenId
) external;
}

/// Backward compatible POAP Implementation
   function transferToken(
       uint256 _eventId,
       address _receiver,
       uint256 _tokenId
   ) external {

   require(_eventId == address(this), "invalid event");
   // _transfer(from,to,id)
   _transfer(msg.sender,_receiver,_tokenId);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant