Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference Failures when Compiling #8

Open
mrtpain opened this issue Nov 9, 2019 · 0 comments
Open

Reference Failures when Compiling #8

mrtpain opened this issue Nov 9, 2019 · 0 comments

Comments

@mrtpain
Copy link

mrtpain commented Nov 9, 2019

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant