-
Notifications
You must be signed in to change notification settings - Fork 50
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
chore: Add view_account, view_code, view_block #82
Conversation
@@ -93,3 +96,15 @@ impl TryFrom<Vec<u8>> for CryptoHash { | |||
<Self as TryFrom<&[u8]>>::try_from(v.as_ref()) | |||
} | |||
} | |||
|
|||
impl fmt::Debug for CryptoHash { |
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.
impl std::hash::Hash
seems like a reasonable addition.
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.
So you can use it as keys to HashMap
& HashSet
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.
Yeah, could derive it, probably worth adding
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.
So you can use it as keys to
HashMap
&HashSet
oops had deleted my comment and updated it before I saw you responded. Sorry for my brain lapse :D
This adds a couple convenience functions to
Worker
andAccount
types:Also addresses #76