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

Filename mismatch when using CONTRACT macro #131

Closed
DenisCarriere opened this issue Apr 7, 2023 · 1 comment
Closed

Filename mismatch when using CONTRACT macro #131

DenisCarriere opened this issue Apr 7, 2023 · 1 comment

Comments

@DenisCarriere
Copy link
Member

DenisCarriere commented Apr 7, 2023

Issue

When using CONTRACT macro, if the filename uses a . or different .cpp filename (ex: eosio.faucet.cpp ) it causes an error 8000000000000000000 when deployed.

Refactoring eosio::contract => CONTRACT

telegram-cloud-photo-size-1-5010594579812035223-y

telegram-cloud-photo-size-1-5010594579812035224-y

$ cdt-cpp eosio.faucet.cpp -I include

--contract=<string> causes the same issue

eosio.time repo

Possible solutions

  • Throw an error at compile time (contract name does not match filename)
    • Recommend alternative solution
    • throw error saying contract name mismatches filename
  • By default use .cpp filename as contract name?
  • Allow option for --contract-name=<string>
@ericpassmore
Copy link
Contributor

closing duplication of #133

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

No branches or pull requests

4 participants