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

cargo contract check fails due to "No such file or directory" #212

Closed
cmichi opened this issue Mar 4, 2021 · 2 comments
Closed

cargo contract check fails due to "No such file or directory" #212

cmichi opened this issue Mar 4, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cmichi
Copy link
Collaborator

cmichi commented Mar 4, 2021

Tested with latest master:

$ cargo run -- contract new fails
$ cd fails/
$ cargo contract check                                                          
...
 [2/2] Post processing wasm file
ERROR: Loading original wasm file '/tmp/fails/target/ink/wasm32-unknown-unknown/release/fails.wasm'

Caused by:
    Can't read from the file: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Same with our ink! rc3 examples.

@cmichi cmichi added the bug Something isn't working label Mar 4, 2021
@cmichi cmichi self-assigned this Mar 4, 2021
@ascjones
Copy link
Collaborator

ascjones commented Mar 4, 2021

I think check should not even attempt to run the optimize step at all.

@cmichi
Copy link
Collaborator Author

cmichi commented Mar 11, 2021

Fixed with #180.

@cmichi cmichi closed this as completed Mar 11, 2021
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

No branches or pull requests

2 participants