-
Notifications
You must be signed in to change notification settings - Fork 631
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
feat: derive more traits #745
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm,
some derives like hash may not be needed but can't hurt
Co-authored-by: Matthias Seitz <[email protected]>
@@ -6,10 +6,10 @@ use alloc::vec::Vec; | |||
use core::fmt; | |||
|
|||
/// The EVM stack limit, in number of items. | |||
pub const STACK_LIMIT: usize = 1024; | |||
const STACK_LIMIT: usize = 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave it as a pub, it does not hurt
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@@ -34,7 +35,7 @@ pub struct State<DB: Database> { | |||
/// return not existing account and storage. | |||
/// | |||
/// Note: It is marked as Send so database can be shared between threads. | |||
pub database: DB, //Box<dyn Database<Error = DBError> + Send + 'a>, | |||
pub database: DB, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty
@DaniPopes if you are okay, would take this over |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.