diff --git a/contracts/ScopedNFTProviders.cdc b/contracts/ScopedNFTProviders.cdc index a3a4661..3510b78 100644 --- a/contracts/ScopedNFTProviders.cdc +++ b/contracts/ScopedNFTProviders.cdc @@ -78,7 +78,7 @@ access(all) contract ScopedNFTProviders { // // Wrapper around an NFT Provider that is restricted to specific ids. access(all) resource ScopedNFTProvider: NonFungibleToken.Provider { - access(self) let provider: Capability + access(self) let provider: Capability access(self) let filters: [{NFTFilter}] // block timestamp that this provider can no longer be used after @@ -91,7 +91,7 @@ access(all) contract ScopedNFTProviders { return false } - access(all) init(provider: Capability, filters: [{NFTFilter}], expiration: UFix64?) { + access(all) init(provider: Capability, filters: [{NFTFilter}], expiration: UFix64?) { self.provider = provider self.expiration = expiration self.filters = filters @@ -157,7 +157,7 @@ access(all) contract ScopedNFTProviders { } access(all) fun createScopedNFTProvider( - provider: Capability, + provider: Capability, filters: [{NFTFilter}], expiration: UFix64? ): @ScopedNFTProvider { diff --git a/transactions/examplenft/mint.cdc b/transactions/examplenft/mint.cdc index a6b2919..4f7db31 100644 --- a/transactions/examplenft/mint.cdc +++ b/transactions/examplenft/mint.cdc @@ -14,7 +14,7 @@ transaction(recipient: Address) { } execute { - let receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.Collection}>(ExampleNFT.CollectionPublicPath)!.borrow()! + let receiver = getAccount(recipient).capabilities.get<&{NonFungibleToken.Collection}>(ExampleNFT.CollectionPublicPath).borrow()! self.minter.mintNFT(recipient: receiver, name: "testname", description: "descr", thumbnail: "image.html", royaltyReceipient: self.minter.owner!.address) } }