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

[BUG] Generating TS types in copile command fails with Camel case contract name #151

Closed
shunsukew opened this issue May 4, 2023 · 1 comment · Fixed by #136
Closed
Labels
bug Something isn't working

Comments

@shunsukew
Copy link
Contributor

shunsukew commented May 4, 2023

Description

When contracts name managed by swanky-cli is in Camel case, contract compile command fails at generating TS types step.
This is because contract names are converted to Snake case when templating ink! contract, thus path to /target/ink/{ContractName} doesn't match to artifacts path generated by cargo contract.

Steps to Reproduce

Replace the example steps below with actual steps to reproduce the bug you're reporting.

  1. Name your contract with Camel case. swanky contract new SampleContract
  2. Execute compile command
@shunsukew shunsukew added the bug Something isn't working label May 4, 2023
@shunsukew shunsukew reopened this May 17, 2023
@shunsukew
Copy link
Contributor Author

Wrongly closed, I reopened the ticket

@codespool codespool linked a pull request May 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant