@@ -10,9 +10,6 @@ contract GoldStar {
10
10
access (all)
11
11
let adminStoragePath : StoragePath
12
12
13
- access (all)
14
- entitlement Owner
15
-
16
13
access (all)
17
14
entitlement UpdateHandle
18
15
@@ -94,7 +91,7 @@ contract GoldStar {
94
91
access (all)
95
92
var evmContracts : {String : Bool }
96
93
97
- access (Owner | UpdateDeployedContracts)
94
+ access (UpdateDeployedContracts)
98
95
fun addCadenceContract (address : Address , name : String ) {
99
96
if let names = self .cadenceContracts[address] {
100
97
names[name] = true
@@ -103,13 +100,13 @@ contract GoldStar {
103
100
}
104
101
}
105
102
106
- access (Owner | UpdateDeployedContracts)
103
+ access (UpdateDeployedContracts)
107
104
fun addEvmContract (address : [UInt8 ; 20]) {
108
105
var addressString = String.encodeHex (address.toVariableSized ())
109
106
self .evmContracts[addressString] = true
110
107
}
111
108
112
- access (Owner | UpdateDeployedContracts)
109
+ access (UpdateDeployedContracts)
113
110
fun removeCadenceContract (address : Address , name : String ) {
114
111
if let names = self .cadenceContracts[address] {
115
112
names.remove (key : name)
@@ -119,7 +116,7 @@ contract GoldStar {
119
116
}
120
117
}
121
118
122
- access (Owner | UpdateDeployedContracts)
119
+ access (UpdateDeployedContracts)
123
120
fun removeEvmContract (address : [UInt8 ; 20]) {
124
121
var addressString = String.encodeHex (address.toVariableSized ())
125
122
self .evmContracts.remove (key : addressString)
@@ -136,12 +133,12 @@ contract GoldStar {
136
133
access (all)
137
134
var socials : {String : String }
138
135
139
- access (Owner | UpdateSocials)
136
+ access (UpdateSocials)
140
137
fun set (name : String , handle : String ) {
141
138
self .socials[name] = handle
142
139
}
143
140
144
- access (Owner | UpdateSocials)
141
+ access (UpdateSocials)
145
142
fun remove (name : String ) {
146
143
self .socials.remove (key : name)
147
144
}
@@ -156,14 +153,14 @@ contract GoldStar {
156
153
access (all)
157
154
var submissions : @{Type : {Submission }}
158
155
159
- access (Owner | UpdateSubmissions)
156
+ access (UpdateSubmissions)
160
157
fun add (_ submission : @{Submission }, challengeType : Type ): &{Submission} {
161
158
self .submissions[challengeType] <- ! submission
162
159
let ref = &self .submissions[challengeType] as &{Submission}?
163
160
return ref!
164
161
}
165
162
166
- access (Owner | UpdateSubmissions)
163
+ access (UpdateSubmissions)
167
164
fun remove (challengeType : Type ): @{Submission}? {
168
165
return <- self .submissions.remove (key : challengeType)
169
166
}
0 commit comments