multiversx / mx-ide-vscode

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

failed to resolve: use of undeclared crate or module 'nft_minter' #35

Open alexcbb opened 2 years ago

alexcbb commented 2 years ago

Hello, I'm currently trying to test the Elrond IDE extension into visual studio in order to create a smart contract before an NFT minting. I followed the steps of this video : https://www.youtube.com/watch?v=bXbBfJCRVqE&list=TLGGGjcdfWb669QxMzExMjAyMQ . The only difference is that I choosed to use the template nft-minting (for my use case). The problem is the following : even if all tools are well installed (rust, erdpy) I first had an error when building the Smart contract the first time (because elrond-wasm was not installed in my home directory). So I clone elrond-wasm github repo into my home and this issue seemed to be fixed. But when I tried again to build I get an error in my main saying that : "failed to resolve: use of undeclared crate or module 'nft_minter'". I searched this package but was not able to find it. I'm on Ubuntu 20.04 by the way.

Thanks by advance or your reponse

andreyminea commented 2 years ago

go to folder wasm/src file lib.rs then change module name with your module name (usually is the name of the project) EX: elrond_wasm_node::wasm_endpoints! {

here

(
    init
    claim
    fund
    getCrowdfundingTokenIdentifier
    getCurrentFunds
    getDeadline
    getDeposit
    getTarget
    status
)

}