Describe the bug
|
if (!contract.Manifest.IsValid(contract.ScriptHash)) return false; |
|
if (!contract.HasStorage && engine.Snapshot.Storages.Find(engine.CurrentScriptHash.ToArray()).Any()) return false; |
|
engine.Snapshot.Contracts.Delete(hash); |
|
if (contract.HasStorage) |
|
foreach (var (key, _) in engine.Snapshot.Storages.Find(hash.ToArray())) |
|
engine.Snapshot.Storages.Delete(key); |
Since we use contract.id as prefix key, it should replace here in contract.update and contract.destory.
Describe the bug
neo/src/neo/SmartContract/InteropService.Contract.cs
Lines 83 to 84 in be8ff99
neo/src/neo/SmartContract/InteropService.Contract.cs
Lines 95 to 98 in be8ff99
Since we use contract.id as prefix key, it should replace here in contract.update and contract.destory.