-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add msgs for updating unlocked distribution address and staking rewards distribution address #19
Conversation
let msg = ExecuteMsg::InternalUpdateUnlockedDistributionAddress { | ||
unlocked_distribution_address: unlocked_distribution_address.clone(), | ||
}; | ||
let title = format!("updating unlocked distribution address {}", unlocked_distribution_address.to_string()); |
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.
is this title sufficient? not too sure how it's used
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.
it's purely descriptive
@@ -1072,6 +1154,19 @@ mod tests { | |||
.add_attribute("proposal_id", 1.to_string()) | |||
.add_attribute("status", "Open") | |||
); | |||
|
|||
// Verify admin has updated after internal call |
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.
add more assertions similar to new ones to ensure that the actual storage values are updated
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.
we also need to update the version here https://github.com/sei-protocol/gringotts/blob/main/Cargo.toml#L3
and also the changelog https://github.com/sei-protocol/gringotts/blob/main/CHANGELOG.md
thanks! i actually got an error when testing migration so i bumped it remotely but forgot to make local changes |
Describe your changes and provide context
Add messages to allow for updating unlocked distribution address and staking rewards distribution address.
Testing performed to validate your change
Unit tests, and also verified on autobake cluster