Skip to content
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

Bugfix/delegation type fixes #649

Merged
merged 8 commits into from
Jun 17, 2021
Merged

Conversation

jstuczyn
Copy link
Contributor

Fixes issue where delegation owner (i.e. person who delegated stake) would mistakenly be referred to as "node_identity"

Copy link
Contributor

@durch durch left a comment

Choose a reason for hiding this comment

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

Looks good, just a question around owner()

}

pub fn amount(&self) -> &Coin {
&self.amount
}

pub fn node_identity(&self) -> &String {
&self.node_identity
pub fn owner(&self) -> &HumanAddr {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to return HumanAddr here, it usually easier if a function returns an owned type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've just looked at the usages of the owner() call and you're absolutely right. It would definitely be way easier as in all of the places the call is followed by a clone() anyway.

@futurechimp futurechimp merged commit 3d26549 into develop Jun 17, 2021
@futurechimp futurechimp deleted the bugfix/delegation-type-fixes branch June 17, 2021 09:51
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.

None yet

3 participants