You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
References in the same project should compile using this tool however they fail.
General dotnet build command compiles fine as expected.
Compiling with this tool returns errors such as
Compiling...
Compilation failed!
====== Smart Contract Validation results for file ../../StratisSmartContractsSamples/src/BazaarItemListingContract/BazaarItemListingContract/Bazaar.cs ======
Compilation Result
Compilation OK: False
Error: (156,35): error CS0246: The type or namespace name 'ItemListing' could not be found (are you missing a using directive or an assembly reference?)
From what I can tell, all code being used within a contract must live within the same file for this tool to successfully pass validation and compile.
The text was updated successfully, but these errors were encountered:
Based on the Bazaar contract example at
https://github.com/stratisproject/StratisSmartContractsSamples/blob/master/src/BazaarItemListingContract/BazaarItemListingContract/Bazaar.cs#L156.
References in the same project should compile using this tool however they fail.
General dotnet build command compiles fine as expected.
Compiling with this tool returns errors such as
From what I can tell, all code being used within a contract must live within the same file for this tool to successfully pass validation and compile.
The text was updated successfully, but these errors were encountered: