multiversx / mx-ide-vscode

💻 VS Code extension for developing MultiversX Smart Contracts - Rust, C and C++.
MIT License
70 stars 36 forks source link

Creating a new SC using the Rust "empty" template creates the C version of the contract #44

Closed derTuca closed 2 years ago

derTuca commented 2 years ago

The C version is first in the list, so this is probably the reason. To reproduce the issue:

  1. Go to the Elrond IDE menu
  2. Click on Refresh in the Templates section
  3. Right click the Rust version of the "empty" template and click on New Contract
  4. Enter a name
  5. The C contract will be created.

Tested on v0.10.0 using VS Code v1.64.2 running under Manjaro.

andreibancioiu commented 2 years ago

@derTuca, thank you for reporting this :pray:

We have updated the repository holding the C examples to use a different name (empty-c) - the actual cause was a folder name collision (the templates are fetched from two different repositories).

Please refresh the Templates again, the correct version (Rust) will be used.