Skip to content

Conversation

@lowhung
Copy link
Collaborator

@lowhung lowhung commented Oct 23, 2025

Resolves #275

This pull request replaces AddressNetwork with NetworkId and removes unnecessary clones in the delegation extraction method -> updating the delegators for a drep.

) -> Result<()> {
let stake_addresses = delegators.iter().map(|(addr, _)| (addr).clone()).collect();
let stake_key_to_input: HashMap<KeyHash, _> = delegators
.iter()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just iterate once and build both the stake addresses and stake_key_to_input. This was a fix from the previous PR I worked on.

See here

@lowhung lowhung force-pushed the lowhung/275-remove-address-network branch from 8a19cdd to a08bbdb Compare October 23, 2025 17:19
@lowhung lowhung merged commit 0659d3c into main Oct 24, 2025
2 checks passed
@lowhung lowhung deleted the lowhung/275-remove-address-network branch October 24, 2025 14:58
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.

Cleanup references to AddressNetwork

2 participants