@@ -48,7 +48,7 @@ private int GetNextAvailableId(DataCache snapshot)
4848 return value ;
4949 }
5050
51- internal override ContractTask Initialize ( ApplicationEngine engine , Hardfork ? hardfork )
51+ internal override ContractTask InitializeAsync ( ApplicationEngine engine , Hardfork ? hardfork )
5252 {
5353 if ( hardfork == ActiveIn )
5454 {
@@ -58,15 +58,15 @@ internal override ContractTask Initialize(ApplicationEngine engine, Hardfork? ha
5858 return ContractTask . CompletedTask ;
5959 }
6060
61- private async ContractTask OnDeploy ( ApplicationEngine engine , ContractState contract , StackItem data , bool update )
61+ private async ContractTask OnDeployAsync ( ApplicationEngine engine , ContractState contract , StackItem data , bool update )
6262 {
6363 ContractMethodDescriptor md = contract . Manifest . Abi . GetMethod ( "_deploy" , 2 ) ;
6464 if ( md is not null )
65- await engine . CallFromNativeContract ( Hash , contract . Hash , md . Name , data , update ) ;
65+ await engine . CallFromNativeContractAsync ( Hash , contract . Hash , md . Name , data , update ) ;
6666 engine . SendNotification ( Hash , update ? "Update" : "Deploy" , new VM . Types . Array ( engine . ReferenceCounter ) { contract . Hash . ToArray ( ) } ) ;
6767 }
6868
69- internal override async ContractTask OnPersist ( ApplicationEngine engine )
69+ internal override async ContractTask OnPersistAsync ( ApplicationEngine engine )
7070 {
7171 foreach ( NativeContract contract in Contracts )
7272 {
@@ -92,7 +92,7 @@ internal override async ContractTask OnPersist(ApplicationEngine engine)
9292 oldContract . Manifest = contractState . Manifest ;
9393 }
9494
95- await contract . Initialize ( engine , hf ) ;
95+ await contract . InitializeAsync ( engine , hf ) ;
9696 // Emit native contract notification
9797 engine . SendNotification ( Hash , state is null ? "Deploy" : "Update" , new VM . Types . Array ( engine . ReferenceCounter ) { contract . Hash . ToArray ( ) } ) ;
9898 }
@@ -232,7 +232,7 @@ private async ContractTask<ContractState> Deploy(ApplicationEngine engine, byte[
232232 engine . Snapshot . Add ( key , new StorageItem ( contract ) ) ;
233233 engine . Snapshot . Add ( CreateStorageKey ( Prefix_ContractHash ) . AddBigEndian ( contract . Id ) , new StorageItem ( hash . ToArray ( ) ) ) ;
234234
235- await OnDeploy ( engine , contract , data , false ) ;
235+ await OnDeployAsync ( engine , contract , data , false ) ;
236236
237237 return contract ;
238238 }
@@ -275,7 +275,7 @@ private ContractTask Update(ApplicationEngine engine, byte[] nefFile, byte[] man
275275 }
276276 Helper . Check ( new VM . Script ( contract . Nef . Script , engine . IsHardforkEnabled ( Hardfork . HF_Basilisk ) ) , contract . Manifest . Abi ) ;
277277 contract . UpdateCounter ++ ; // Increase update counter
278- return OnDeploy ( engine , contract , data , true ) ;
278+ return OnDeployAsync ( engine , contract , data , true ) ;
279279 }
280280
281281 [ ContractMethod ( CpuFee = 1 << 15 , RequiredCallFlags = CallFlags . States | CallFlags . AllowNotify ) ]
0 commit comments