-
Notifications
You must be signed in to change notification settings - Fork 526
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
xcNFT M1 & M2 Delivery #1220
xcNFT M1 & M2 Delivery #1220
Conversation
Hi @dudo50 thanks for the delivery and sorry for the delay. I am working on the eval now and am running into a couple failed unit tests. Could you take a look?
Output Compiling sp-panic-handler v13.0.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/panic-handler)
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:34:2
|
34 | sync::LazyLock,
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:13
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `sp-panic-handler` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:28:14
|
28 | sync::{Arc, LazyLock},
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:22
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error: could not compile `sp-trie` (lib) due to 4 previous errors
Output Compiling sp-panic-handler v13.0.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/panic-handler)
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:34:2
|
34 | sync::LazyLock,
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:13
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `sp-panic-handler` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:28:14
|
28 | sync::{Arc, LazyLock},
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:22
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error: could not compile `sp-trie` (lib) due to 4 previous errors
ubuntu@ip-172-31-16-209:~/polkadot-sdk$ cargo test --package pallet-parachain-xcnft-two --lib -- tests --nocapture
warning: /home/ubuntu/polkadot-sdk/Cargo.toml: unused manifest key: workspace.lints.rust.unexpected_cfgs.check-cfg
Compiling sp-panic-handler v13.0.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/panic-handler)
Compiling sp-keystore v0.34.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/keystore)
Compiling sp-trie v29.0.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/trie)
Compiling sp-weights v27.0.0 (/home/ubuntu/polkadot-sdk/substrate/primitives/weights)
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:34:2
|
34 | sync::LazyLock,
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:13
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `sp-panic-handler` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:28:14
|
28 | sync::{Arc, LazyLock},
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:22
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/trie/src/cache/shared_cache.rs:32:53
|
32 | static RANDOM_STATE: LazyLock<ahash::RandomState> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error: could not compile `sp-trie` (lib) due to 4 previous errors
Outputerror[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:34:2
|
34 | sync::LazyLock,
| ^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:13
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
error[E0658]: use of unstable library feature 'lazy_cell'
--> substrate/primitives/panic-handler/src/lib.rs:132:31
|
132 | static RE: LazyLock<Regex> = LazyLock::new(|| {
| ^^^^^^^^^^^^^
|
= note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information Zombienet is running and I'm in the root dir of the cloned Do I need to do something else for these to work? Thanks for any help you can provide. |
Hey @keeganquigley , no worries and thanks! Looking into this, and the tests seem to work fine for me. It seems like a compilation issue to substrate modules not to the xcNFT. Could you please confirm your rust version and if you are running I have following version for comparison: If you are not on latest you can try using this to see if that would resolve your issue:
Let me know if this resolved your issue. Thanks! |
Thanks @dudo50 you're right, indeed I was running stable. It's working now but error: failed to run custom build command for `pallet-revive-fixtures v0.1.0 (/home/ubuntu/polkadot-sdk/substrate/frame/revive/fixtures)`
Caused by:
process didn't exit successfully: `/home/ubuntu/polkadot-sdk/target/debug/build/pallet-revive-fixtures-35f4272dadda2e02/build-script-build` (exit status: 1)
--- stdout
cargo::rerun-if-env-changed=PALLET_REVIVE_FIXTURES_RUSTUP_TOOLCHAIN
cargo::rerun-if-env-changed=PALLET_REVIVE_FIXTURES_STRIP
cargo::rerun-if-env-changed=PALLET_REVIVE_FIXTURES_OPTIMIZE
cargo::rerun-if-changed=/home/ubuntu/polkadot-sdk/substrate/frame/revive/fixtures
cargo::rerun-if-changed=/home/ubuntu/polkadot-sdk/substrate/frame/revive/uapi
--- stderr
Updating crates.io index
Locking 12 packages to latest compatible versions
Adding polkavm-derive v0.14.0 (available: v0.16.0)
error: "/home/ubuntu/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/Cargo.lock" does not exist, unable to build with the standard library, try:
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
Error: Failed to build contracts |
Thanks for the swift reply @keeganquigley, It again seems to be a compilation problem not related to xcNFT, as the cargo test works for me (It errored out at first due to no space on device, but then it compiled successfully). I've tried to ask Copilot for a resolution to problem that you are experiencing, and this is what it suggested: "The error message indicates that the build process is failing because the standard library source code is missing. You can resolve this by adding the rust-src component for the nightly toolchain. Run the following command in your terminal:
This command will install the source code for the standard library, which is required for the build process. After running this command, try building your project again." Let me know if that resolved the issue. Thanks! |
@keeganquigley Sorry for another ping, but meanwhile, I noticed that there was an ambiguous test present in the tests for the pallet_nfts xcNFT version. It accessed pallet_nfts storage directly which is not allowed. After removal error is no longer present. This test was removed from the pallet_uniques version as well, but I forgot to remove it from the pallet_nfts version. We were unable to use the Commit: paraspell-research/polkadot-sdk@57a29b1 Feel free to pull the latest version of the ParaSpell research polkadot-sdk. |
Thanks @dudo50 yes I noticed this too, it's completely passing for me now thanks for the fix. Thanks for the suggestions, Here is milestone 1 and milestone 2 evaluations. |
🪙 Please fill out the invoice form in order to initiate the payment process. Thank you! |
Congratulations on completing the first milestone of this grant! As part of the Grants Program, we want to help grant recipients acknowledge their grants publicly. To that end, we've created a badge for projects that successfully deliver their first milestone. Please use the badge only in reference to the work that has been completed as part of this grant, so please do not display it on your team or project's homepage unless accompanied by a short description of the grant. Furthermore, you're now welcome to announce the grant publicly. Please remember to observe the foundation's guidelines in doing so. If you haven't already, reach out to [email protected] for feedback on your announcement and cross-promotion. |
We noticed that this is the last milestone of your project. Congratulations on completing your grant! 🎊 |
Thanks, @keeganquigley! Yes, improved testing is definitely part of future work plans. So is the switch towards reserved transfers instead of transact transfers. I will ping you once we submit the invoices (tomorrow). With kind regards, |
Hey @keeganquigley, Please let us know if everything is okay and invoices are received correctly. Thanks! With kind regards, |
Thanks @dudo50 hmm I'm not sure if that will work regarding mixing the milestone invoices together. Let me double check with the Finance team and get back to you. |
@dudo50 ok should be good to go, thanks for checking with us! |
Good. Thanks for the information @keeganquigley ! With kind regards, |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#2358