Git Product home page Git Product logo

Comments (5)

hackfisher avatar hackfisher commented on May 27, 2024 1

https://github.com/wuminzhe/darwinia/blob/poc1-final/srml/reward/Cargo.toml#L20

may try to change to

runtime_io = { package = "sr-io", git = 'https://github.com/paritytech/substrate.git' , default-features = false}

from darwinia.

wuminzhe avatar wuminzhe commented on May 27, 2024

poc1-final branch

from darwinia.

AurevoirXavier avatar AurevoirXavier commented on May 27, 2024
Building webassembly binary in node/runtime/wasm...
   Compiling sr-primitives v2.0.0 (https://github.com/paritytech/substrate.git#5bf5e8f5)
error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:407:1
    |
407 | / pub trait Hash: 'static + MaybeSerializeDebug + Clone + Eq + PartialEq {    // Stupid bug in the Rust compiler believes derived
408 | |                                                                     // traits must be fulfilled by all type parameters.
409 | |     /// The hash type produced.
410 | |     type Output: Member + MaybeSerializeDebug + rstd::hash::Hash + AsRef<[u8]> + AsMut<[u8]> + Copy
...   |
444 | |     fn storage_changes_root(parent_hash: Self::Output) -> Option<Self::Output>;
445 | | }
    | |_^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:417:2
    |
417 |     fn hash(s: &[u8]) -> Self::Output;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:420:2
    |
420 |       fn hash_of<S: Codec>(s: &S) -> Self::Output {
    |  _____^
421 | |         Encode::using_encoded(s, Self::hash)
422 | |     }
    | |_____^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:425:2
    |
425 |     fn enumerated_trie_root(items: &[&[u8]]) -> Self::Output;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:428:2
    |
428 |       fn ordered_trie_root<
    |  _____^
429 | |         I: IntoIterator<Item = A> + Iterator<Item = A>,
430 | |         A: AsRef<[u8]>
431 | |     >(input: I) -> Self::Output;
    | |________________________________^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:434:2
    |
434 |       fn trie_root<
    |  _____^
435 | |         I: IntoIterator<Item = (A, B)>,
436 | |         A: AsRef<[u8]> + Ord,
437 | |         B: AsRef<[u8]>
438 | |     >(input: I) -> Self::Output;
    | |________________________________^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:441:2
    |
441 |     fn storage_root() -> Self::Output;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error[E0277]: `<Self as traits::Hash>::Output` doesn't implement `core::fmt::Debug`
   --> /Users/xavier/.cargo/git/checkouts/substrate-7e08433d4c370a21/5bf5e8f/core/sr-primitives/src/traits.rs:444:2
    |
444 |     fn storage_changes_root(parent_hash: Self::Output) -> Option<Self::Output>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<Self as traits::Hash>::Output` cannot be formatted using `{:?}` because it doesn't implement `core::fmt::Debug`
    |
    = help: the trait `core::fmt::Debug` is not implemented for `<Self as traits::Hash>::Output`
    = help: consider adding a `where <Self as traits::Hash>::Output: core::fmt::Debug` bound
    = note: required because of the requirements on the impl of `hash_db::MaybeDebug` for `<Self as traits::Hash>::Output`
    = note: required by `hash_db::Hasher`

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0277`.
error: Could not compile `sr-primitives`.

To learn more, run the command again with --verbose.

from darwinia.

wuminzhe avatar wuminzhe commented on May 27, 2024

commit cd8f1a3 (HEAD -> poc1-final)
Merge: 81ab7f5 d9e464d
Author: Wu Minzhe [email protected]
Date: Fri Jul 26 10:44:36 2019 +0800

merge from upstream

commit 81ab7f5
Author: Wu Minzhe [email protected]
Date: Fri Jul 26 10:41:31 2019 +0800

extract reward module

commit d9e464d (upstream/poc1-final)
Author: hammeWang [email protected]
Date: Fri Jul 26 10:37:10 2019 +0800

add staking tests and fix bugs in wasm buidling

commit 47c627c (origin/poc1-final)
Author: hammeWang [email protected]
Date: Wed Jul 24 18:22:37 2019 +0800

handle errs in staking

commit 7c4e258
Author: hammeWang [email protected]
Date: Wed Jul 24 14:28:43 2019 +0800

add kton storage initialization

commit 4d5304d
Author: hammeWang [email protected]
Date: Mon Jul 22 11:02:07 2019 +0800

update for test all, temporarily

from darwinia.

wuminzhe avatar wuminzhe commented on May 27, 2024

and this is my local git tree:

*   cd8f1a3 - (HEAD -> poc1-final) merge from upstream (45 minutes ago) <Wu Minzhe>
|\
| * d9e464d - (upstream/poc1-final) add staking tests and fix bugs in wasm buidling (53 minutes ago) <hammeWang>
* | 81ab7f5 - extract reward module (49 minutes ago) <Wu Minzhe>
|/
* 47c627c - (origin/poc1-final) handle errs in staking (2 days ago) <hammeWang>
* 7c4e258 - add kton storage initialization (2 days ago) <hammeWang>
* 4d5304d - update for test all, temporarily (4 days ago) <hammeWang>
* 0085336 - mark:update for frontend event decoding (8 days ago) <hammeWang>
* c38a722 - update runtime version (9 days ago) <hammeWang>
* 0fd5973 - remove unnecessary code (10 days ago) <hammeWang>
* cbea038 - add basic tests about staking (12 days ago) <hammeWang>

from darwinia.

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.