Skip to content

Instantly share code, notes, and snippets.

@evandiewald
Created May 3, 2021 20:33
Show Gist options
  • Save evandiewald/52398c8402e02ba8e8ad61aa76a62f23 to your computer and use it in GitHub Desktop.
Save evandiewald/52398c8402e02ba8e8ad61aa76a62f23 to your computer and use it in GitHub Desktop.
import NonFungibleTicket from 0xf8d6e0586b0a20c7
pub fun main() : [UInt64] {
let acct1 = getAccount(0xf8d6e0586b0a20c7)
let capability1 = acct1.getCapability<&{NonFungibleTicket.NFTReceiver}>(/public/NFTReceiver)
let receiverRef1 = capability1.borrow()
?? panic("Could not borrow the receiver reference")
return receiverRef1.getIDs()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment