@@ -154,13 +154,13 @@ public IEnumerable<ContractState> ListContracts(DataCache snapshot)
154
154
return snapshot . Find ( listContractsPrefix ) . Select ( kvp => kvp . Value . GetInteroperable < ContractState > ( ) ) ;
155
155
}
156
156
157
- [ ContractMethod ( RequiredCallFlags = CallFlags . States | CallFlags . AllowNotify ) ]
157
+ [ ContractMethod ( RequiredCallFlags = CallFlags . All ) ]
158
158
private ContractTask < ContractState > Deploy ( ApplicationEngine engine , byte [ ] nefFile , byte [ ] manifest )
159
159
{
160
160
return Deploy ( engine , nefFile , manifest , StackItem . Null ) ;
161
161
}
162
162
163
- [ ContractMethod ( RequiredCallFlags = CallFlags . States | CallFlags . AllowNotify ) ]
163
+ [ ContractMethod ( RequiredCallFlags = CallFlags . All ) ]
164
164
private async ContractTask < ContractState > Deploy ( ApplicationEngine engine , byte [ ] nefFile , byte [ ] manifest , StackItem data )
165
165
{
166
166
if ( engine . ScriptContainer is not Transaction tx )
@@ -200,13 +200,13 @@ private async ContractTask<ContractState> Deploy(ApplicationEngine engine, byte[
200
200
return contract ;
201
201
}
202
202
203
- [ ContractMethod ( RequiredCallFlags = CallFlags . States | CallFlags . AllowNotify ) ]
203
+ [ ContractMethod ( RequiredCallFlags = CallFlags . All ) ]
204
204
private ContractTask Update ( ApplicationEngine engine , byte [ ] nefFile , byte [ ] manifest )
205
205
{
206
206
return Update ( engine , nefFile , manifest , StackItem . Null ) ;
207
207
}
208
208
209
- [ ContractMethod ( RequiredCallFlags = CallFlags . States | CallFlags . AllowNotify ) ]
209
+ [ ContractMethod ( RequiredCallFlags = CallFlags . All ) ]
210
210
private ContractTask Update ( ApplicationEngine engine , byte [ ] nefFile , byte [ ] manifest , StackItem data )
211
211
{
212
212
if ( nefFile is null && manifest is null ) throw new ArgumentException ( ) ;
0 commit comments