Coder Social home page Coder Social logo

Comments (4)

ii-ii-ii avatar ii-ii-ii commented on August 22, 2024

@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.

ascjones avatar ascjones commented on August 22, 2024

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.

ii-ii-ii avatar ii-ii-ii commented on August 22, 2024

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.

ascjones avatar ascjones commented on August 22, 2024

My mistake, I thought it would have worked. I'll look at implementing this soon.

from cargo-contract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.