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

Fix/update init template #1224

Merged
merged 10 commits into from
Mar 6, 2024

Conversation

elizabethengelman
Copy link
Contributor

@elizabethengelman elizabethengelman commented Feb 27, 2024

What

A companion PR to stellar-deprecated/soroban-docs#730. A few tweaks to the init command and template to make it a bit easier to work with.

  • add testutils feature to template Cargo.toml
  • allow init to be called from within an existing directory - previously we were looking at the passed-in directory name to use as the "name" in package.json. But if the user calls soroban contract init ./ we wouldn't have a project name. This PR handles this scenario.
  • Include the .soroban/contract-ids file in the template with a .gitkeep

Why

While updating the Getting Started Guide doc, I discovered some things that could change to make soroban contract init a bit nicer to work with.

Known limitations

N/A

Copy link
Contributor

@chadoh chadoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@elizabethengelman elizabethengelman merged commit cb3b0f8 into stellar:main Mar 6, 2024
11 checks passed
@elizabethengelman elizabethengelman deleted the fix/update-init-template branch March 6, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants