Comments (4)
@ascjones hi, I would like to know if this issue is solved. Because I'm working on multiple contracts and I'll have some trouble if I can't generate abi for sub-contracts.
from cargo-contract.
It's not solved yet. It should still work if you run cargo-contract
from a sub contract's directory, or use the --manifest-path
argument
from cargo-contract.
When I try to execute cargo +nightly contract build
in a subdirectory I get an error:
error[E0463]: can't find crate for `contract`
--> .ink/metadata_gen/main.rs:1:1
|
1 | extern crate contract;
| ^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: could not compile `metadata-gen`
To learn more, run the command again with --verbose.
It can get a wasm file, but cannot generate abi. Using --manifest-path
also gives the same error
from cargo-contract.
My mistake, I thought it would have worked. I'll look at implementing this soon.
from cargo-contract.
Related Issues (20)
- Unable to build a verifiable ink! flipper contract HOT 2
- Enable more optional `clippy` lints when building contracts
- Improve `ink_linting` integration
- `cargo contract info --all` stops working on Chopsticks after some interactions HOT 3
- Print type comparison warning only on `--verbose`
- Prettify tabular output of `cargo contract storage`
- `cargo contract storage` fails with `Root Key not found` HOT 1
- InkProject not exported from ink_metadata
- Add test workflow for verifiable build
- Fix formatting for missing toolchain error
- Add `--wasm` to `cargo contract verify`
- Fix installation instructions for linter HOT 1
- Linter: Replace `GIT_REV` with `GIT_BRANCH`
- Implement comments from #1290 HOT 1
- Failure when interacting with chains that use older `pallet-contracts` versions HOT 1
- Add `--metadata` flag for `cargo contract storage`
- e2e tests fail on flipper contract that cargo contract creates HOT 2
- `contract-extrinsics` `integration_tests` and `contract-build` tests can not be run in parallel, causing long CI times
- Invalid links to images in readme file
- Replace `scon` value parser with `scale_value` parser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-contract.