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

Add msgs for updating unlocked distribution address and staking rewards distribution address #19

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

philipsu522
Copy link
Contributor

@philipsu522 philipsu522 commented Mar 14, 2024

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

let msg = ExecuteMsg::InternalUpdateUnlockedDistributionAddress {
unlocked_distribution_address: unlocked_distribution_address.clone(),
};
let title = format!("updating unlocked distribution address {}", unlocked_distribution_address.to_string());
Copy link
Contributor Author

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

Copy link
Collaborator

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
Copy link
Contributor Author

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

Copy link
Collaborator

@codchen codchen left a comment

Choose a reason for hiding this comment

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

@philipsu522
Copy link
Contributor Author

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

@philipsu522 philipsu522 requested review from yzang2019 and besated and removed request for stevenlanders March 14, 2024 15:27
@philipsu522 philipsu522 merged commit 8990f0e into main Mar 14, 2024
1 check passed
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