Skip to content

Commit

Permalink
fix NFTForwarding.Forwarder conformance to .Receiver & rename events
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Oct 24, 2023
1 parent 6958b19 commit cf9a423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/utility/NFTForwarding.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ access(all) contract NFTForwarding {

/// Resource that forwards deposited NFTs to a designated recipient's Collection
///
access(all) resource NFTForwarder : NonFungibleToken.Collection {
access(all) resource NFTForwarder : NonFungibleToken.Receiver {

/// Recipient to which NFTs will be forwarded
///
Expand Down Expand Up @@ -71,15 +71,15 @@ access(all) contract NFTForwarding {
}

self.recipient = newRecipient
emit NFTForwarderRecipientChanged(forwarder: self.owner?.address)
emit UpdatedNFTForwarderRecipient(forwarder: self.owner?.address)
}

init(_ recipient: Capability<&{NonFungibleToken.Collection}>) {
pre {
recipient.check(): "Could not borrow Collection reference from the given Capability"
}
self.recipient = recipient
emit NFTForwarderRecipientChanged(forwarder: self.owner?.address)
emit UpdatedNFTForwarderRecipient(forwarder: self.owner?.address)
}
}

Expand Down

0 comments on commit cf9a423

Please sign in to comment.