-
Notifications
You must be signed in to change notification settings - Fork 121
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
undefined reference to `__ink_generate_metadata' #909
Comments
It seems like linking this function is not working.
|
Seems related to #199 (comment). I have |
Hi @HCastano, I've now tried with the following versions and I'm hitting the same error: In both parent and child contract, using
With
Returns
|
Correction, I was using this commit for ink: use-ink/ink@50b32f4 which is the actual v4 release candidate. |
@forgetso I managed to reproduce this, but I still need to dig in further to see what's wrong. Can you do a few things in the meantime:
|
Apologies, the |
Here is a reproducible example using https://github.com/prosopo/ink_generate_metadata It looks like the cargo contract templates are still using the ink release candidate btw. |
Haha, yeah I noticed yesterday #971 😅 |
Should be fixed with #977. For an immediate fix try adding |
Thanks guys, very much appreciated! |
Hi,
I'm unable to generate the metadata when compiling a contract that has a reference to a second contract using
cargo-contract-contract 2.0.0-rc-3c084d2-x86_64-unknown-linux-gnu
.The contract tomls are here and here. The second one references the first one in its toml. The first contract compiles ok.
I've now tried this with both a local copy of cargo-contract and when installed using
cargo install cargo-contract --version 2.0.0-rc
.The text was updated successfully, but these errors were encountered: