Skip to content

Commit

Permalink
[Compiler Fix] Fix exception name typo (#957)
Browse files Browse the repository at this point in the history
* print compile exception

* print exception, but not stop complition

* revert exception print
  • Loading branch information
Jim8y authored Feb 26, 2024
1 parent 77c1beb commit 0adce1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/Neo.Compiler.CSharp/CompilationEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@ private List<CompilationContext> CompileProjectContracts(Compilation compilation
if (classDependencies.Count == 0) throw new FormatException("No valid neo SmartContract found. Please make sure your contract is subclass of SmartContract and is not abstract.");
// Check contract dependencies, make sure there is no cycle in the dependency graph
var sortedClasses = TopologicalSort(classDependencies);
foreach (var classSymbol in sortedClasses)
{
new CompilationContext(this, classSymbol).Compile();
}

sortedClasses.ForEach(c => new CompilationContext(this, c).Compile());
return Contexts.Select(p => p.Value).ToList();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Neo.Compiler.CSharp/DiagnosticId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static class DiagnosticId
public const string NoEntryPoint = "NC1001";
public const string ExternMethod = "NC1002";
public const string NoParameterlessConstructor = "NC1003";
public const string MultiplyContracts = "NC1004";
public const string MultipleContracts = "NC1004";
public const string SyntaxNotSupported = "NC2001";
public const string EventReturns = "NC2002";
public const string NonStaticDelegate = "NC2003";
Expand Down

0 comments on commit 0adce1d

Please sign in to comment.