Skip to content

Commit

Permalink
update provider capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahannan committed May 1, 2024
1 parent 46062ad commit 97e3cfa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/NFTStorefront.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ access(all) contract NFTStorefront {
/// This capability allows the resource to withdraw *any* NFT, so you should be careful when giving
/// such a capability to a resource and always check its code to make sure it will use it in the
/// way that it claims.
access(contract) let nftProviderCapability: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>
access(contract) let nftProviderCapability: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>

/// borrowNFT
/// This will assert in the same way as the NFT standard borrowNFT()
Expand Down
2 changes: 1 addition & 1 deletion contracts/NFTStorefrontV2.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ access(all) contract NFTStorefrontV2 {
/// This capability allows the resource to withdraw *any* NFT, so you should be careful when giving
/// such a capability to a resource and always check its code to make sure it will use it in the
/// way that it claims.
access(contract) let nftProviderCapability: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}>
access(contract) let nftProviderCapability: Capability<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>

/// An optional list of marketplaces capabilities that are approved
/// to receive the marketplace commission.
Expand Down
26 changes: 22 additions & 4 deletions flow.testnet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"contracts": {
"NFTStorefrontV2": "./contracts/NFTStorefrontV2.cdc",
"NFTStorefront": {
"source": "./contracts/NFTStorefront.cdc",
"aliases": {
"testnet": "0x94b06cfca1d8a476"
}
},
"NFTStorefrontV2": {
"source": "./contracts/NFTStorefrontV2.cdc",
"aliases": {
"testnet": "0x2d55b98eb200daef"
}
},
"FungibleToken": {
"source": "./contracts/utility/FungibleToken.cdc",
"aliases": {
Expand All @@ -18,14 +29,21 @@
"testnet": "access.devnet.nodes.onflow.org:9000"
},
"accounts": {
"testnet-account": {
"v1-account": {
"address": "0x94b06cfca1d8a476",
"key": "$V1-STOREFRONT-TESTNET"
},
"v2-account": {
"address": "0x2d55b98eb200daef",
"key": "$TESTNET_KEY"
"key": "$V2-STOREFRONT-TESTNET"
}
},
"deployments": {
"testnet": {
"testnet-account": [
"v1-account": [
"NFTStorefront"
],
"v2-account": [
"NFTStorefrontV2"
]
}
Expand Down

0 comments on commit 97e3cfa

Please sign in to comment.