Skip to content

Commit

Permalink
Fix entitlement issue in drops, redeploy to testnet (#21)
Browse files Browse the repository at this point in the history
* configure new testnet address

* correct entitlement issue on drop phases
  • Loading branch information
austinkline authored Aug 18, 2024
1 parent b1d7414 commit 9571cbc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/FlowtyDrops.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ access(all) contract FlowtyDrops {
return arr
}

access(all) fun addPhase(_ phase: @Phase) {
access(Owner) fun addPhase(_ phase: @Phase) {
emit PhaseAdded(
dropID: self.uuid,
dropAddress: self.owner!.address,
Expand All @@ -159,7 +159,7 @@ access(all) contract FlowtyDrops {
self.phases.append(<-phase)
}

access(all) fun removePhase(index: Int): @Phase {
access(Owner) fun removePhase(index: Int): @Phase {
pre {
self.phases.length > index: "index is greater than length of phases"
}
Expand Down
18 changes: 14 additions & 4 deletions flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"flowty-drops-testnet": {
"address": "0x06f1e5cde6db0e70",
"address": "0xd20430774404a7e8",
"key": {
"type": "google-kms",
"index": 0,
Expand All @@ -42,7 +42,7 @@
}
},
"droptypes-testnet": {
"address": "0x9680721e43087f43",
"address": "0x3d49bb33997bd91e",
"key": {
"type": "google-kms",
"index": 0,
Expand All @@ -52,7 +52,7 @@
}
},
"sample-nfts-testnet": {
"address": "0xb1c92b8c73994e26",
"address": "0xd92e02ee8881d9c1",
"key": {
"type": "google-kms",
"index": 0,
Expand Down Expand Up @@ -297,7 +297,17 @@
"FlowtySwitchers",
"FlowtyAddressVerifiers",
"FlowtyPricers",
"DropFactory"
"DropFactory",
"BaseCollection",
"BaseNFT",
"ContractFactory",
"ContractFactoryTemplate",
"NFTMetadata",
"OpenEditionTemplate",
"UniversalCollection",
"ContractBorrower",
"ContractInitializer",
"OpenEditionInitializer"
],
"droptypes-testnet": [
"DropTypes"
Expand Down

0 comments on commit 9571cbc

Please sign in to comment.