-
Notifications
You must be signed in to change notification settings - Fork 5
Refactor: Replace StakeAddressPayload with StakeCredential
#287
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
Conversation
…nsistency across modules.
# Conflicts: # common/src/address.rs # common/src/stake_addresses.rs # modules/accounts_state/src/snapshot.rs # modules/accounts_state/src/state.rs # modules/rest_blockfrost/src/handlers/epochs.rs # modules/stake_delta_filter/src/utils.rs
| } | ||
|
|
||
| pub fn get_credential(&self) -> Credential { | ||
| match &self.payload { |
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.
This getter feels a bit silly now
3898ca1 to
0e84a10
Compare
whankinsiv
left a comment
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.
Looks great overall. My only suggestion is to use the fixed size ScriptHash and AddrKeyHash for the Credential enum so we have a guarantee that these are the correct size.
whankinsiv
left a comment
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.
Please create an issue for switching Credential to use the types defined in hash.rs. As discussed this is a larger refactor which can be addressed in a follow up PR due to all the to_vec() conversions in the codebase.
No description provided.