Skip to content

Conversation

@lowhung
Copy link
Collaborator

@lowhung lowhung commented Oct 24, 2025

No description provided.

# 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 {
Copy link
Collaborator Author

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

@lowhung lowhung force-pushed the lowhung/remove-stake-address-payload branch from 3898ca1 to 0e84a10 Compare October 24, 2025 19:46
Copy link
Collaborator

@whankinsiv whankinsiv left a 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.

Copy link
Collaborator

@whankinsiv whankinsiv left a 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.

@lowhung lowhung merged commit 973eff6 into main Oct 27, 2025
2 checks passed
@SupernaviX SupernaviX deleted the lowhung/remove-stake-address-payload branch October 28, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants