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

feat: split commands for withdraw rewards and commission due to eip712 #175

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

forcodedancing
Copy link
Collaborator

@forcodedancing forcodedancing commented Apr 13, 2023

Description

This pr migrates the change of:
#108 feat: split commands for withdrawal of rewards and commission

Rationale

Due to the EIP712 requirement, only one message can be executed in an single transaction.

Example

  • distribution withdraw-rewards
  • distribution withdraw-commission

Changes

Notable changes:

  • update cli

@github-actions
Copy link
Contributor

@forcodedancing your pull request is missing a changelog!

@@ -184,7 +184,7 @@ func SimulateMsgWithdrawValidatorCommission(txConfig client.TxConfig, ak types.A
account := ak.GetAccount(ctx, simAccount.Address)
spendable := bk.SpendableCoins(ctx, account.GetAddress())

msg := types.NewMsgWithdrawValidatorCommission(validator.GetOperator())
msg := types.NewMsgWithdrawValidatorCommission(sdk.AccAddress(validator.GetOperator()))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently, in staking module validator's operator is using ValAddress type. Need to change in the following prs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

right, I have found some places in other modules too

Copy link
Collaborator

@unclezoro unclezoro left a comment

Choose a reason for hiding this comment

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

image

One failed testcases

@unclezoro unclezoro merged commit 2c707cb into develop_v0.47_latest Apr 13, 2023
@unclezoro unclezoro deleted the distribution_migrate branch April 18, 2023 09:18
yutianwu pushed a commit to yutianwu/greenfield-cosmos-sdk that referenced this pull request May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants