Last active
March 4, 2021 14:18
-
-
Save polluterofminds/4f8275f5302ffd81a1849a6315fdca24 to your computer and use it in GitHub Desktop.
Check NFT Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PinataPartyContract from 0xf8d6e0586b0a20c7 | |
pub fun main() : {String : String} { | |
let nftOwner = getAccount(0xf8d6e0586b0a20c7) | |
// log("NFT Owner") | |
let capability = nftOwner.getCapability<&{PinataPartyContract.NFTReceiver}>(/public/NFTReceiver) | |
let receiverRef = capability.borrow() | |
?? panic("Could not borrow the receiver reference") | |
return receiverRef.getMetadata(id: 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment