diff --git a/src/Neo.Compiler.MSIL/Neo.Compiler.MSIL.csproj b/src/Neo.Compiler.MSIL/Neo.Compiler.MSIL.csproj index ce2008e96..02523cdfc 100644 --- a/src/Neo.Compiler.MSIL/Neo.Compiler.MSIL.csproj +++ b/src/Neo.Compiler.MSIL/Neo.Compiler.MSIL.csproj @@ -26,7 +26,7 @@ - + diff --git a/templates/Template.CSharp/Contract1.cs b/templates/Template.CSharp/Contract1.cs index cf0993c7f..28c95c237 100644 --- a/templates/Template.CSharp/Contract1.cs +++ b/templates/Template.CSharp/Contract1.cs @@ -5,7 +5,8 @@ namespace $safeprojectname$ { - public class Contract1 : SmartContract + [Features(ContractFeatures.HasStorage)] + public class Contract1 : SmartContract { public static bool Main(string operation, object[] args) { diff --git a/tests/Neo.Compiler.MSIL.UnitTests/Utils/TestSnapshot.cs b/tests/Neo.Compiler.MSIL.UnitTests/Utils/TestSnapshot.cs index e5d3f27d8..a8dfb582e 100644 --- a/tests/Neo.Compiler.MSIL.UnitTests/Utils/TestSnapshot.cs +++ b/tests/Neo.Compiler.MSIL.UnitTests/Utils/TestSnapshot.cs @@ -25,6 +25,8 @@ public class TestSnapshot : StoreView public override DataCache Storages => _Storages; + public override MetaDataCache ContractId => _ContractId; + public override DataCache, HeaderHashList> HeaderHashList => _HeaderHashList; public override MetaDataCache BlockHashIndex => _BlockHashIndex;