Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion purchase-pack-direct/mainnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FungibleTokenContractAddress=0xf233dcee88fe0abe
NonFungibleTokenContractAddress=0x1d7e57aa55817448
DapperUtilityCoinContractAddress=0xead892083b3e2c6c
NFTStorefrontContractAddress=0x4eb8a10cb9f87357
PackNFTAddress=
PackNFTContractAddress=
NFTContractName=
NFTContractAddress=
4 changes: 2 additions & 2 deletions purchase-pack-direct/purchase-pack-direct.cdc.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import FungibleToken from ${FungibleTokenContractAddress}
import NonFungibleToken from ${NonFungibleTokenContractAddress}
import NFTStorefront from ${NFTStorefrontContractAddress}
import PackNFT from ${PackNFTAddress}
import PackNFT from ${PackNFTContractAddress}
import DapperUtilityCoin from ${DapperUtilityCoinContractAddress}
import ${NFTContractName} from ${NFTContractAddress}

Expand All @@ -23,7 +23,7 @@ transaction(storefrontAddress: Address, listingResourceID: UInt64, expectedPrice
// Initialize the collection if the buyer does not already have one
if buyer.borrow<&${NFTContractName}.Collection>(from: ${NFTContractName}.CollectionStoragePath) == nil {
buyer.save(<-${NFTContractName}.createEmptyCollection(), to: ${NFTContractName}.CollectionStoragePath
buyer.link<&${NFTContractName}.Collection{NonFungibleToken.CollectionPublic, ${NFTContractName}.MomentNFTCollectionPublic}>(
buyer.link<&${NFTContractName}.Collection{NonFungibleToken.CollectionPublic, ${NFTContractName}.${NFTContractName}CollectionPublic}>(
${NFTContractName}.CollectionPublicPath,
target: ${NFTContractName}.CollectionStoragePath
)
Expand Down
2 changes: 1 addition & 1 deletion purchase-pack-direct/testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FungibleTokenContractAddress=0x9a0766d93b6608b7
NonFungibleTokenContractAddress=0x631e88ae7f1d7c20
DapperUtilityCoinContractAddress=0x82ec283f88a62e65
NFTStorefrontContractAddress=0x94b06cfca1d8a476
PackNFTAddress=
PackNFTContractAddress=
NFTContractName=
NFTContractAddress=