Quantcast
Channel: How to include ::Blocknumber in a struct within a Substrate FRAME pallet - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by sea212 for How to include ::Blocknumber in a struct within a...

A suggestion from Guillaume from substrate-technical Element chat that solved the problem:in rust the code:/// Structure that contains the proof#[derive(Debug)]pub struct PhysicalProof<T,...

View Article



Answer by Ibraheem Ahmed for How to include ::Blocknumber in a struct within...

To derive Debug for as struct, all of its fields must be able to implement Debug. Right now, the compiler doesn't know if T is debuggable.You can tell the compiler that T implements Debug by adding a...

View Article

How to include ::Blocknumber in a struct within a Substrate FRAME pallet

Can anybody tell me please how to include <T as Trait>::BlockNumber and <T as Trait>::AccountId in my struct within my pallet module?My current solution is to add a generic parameter T with...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>