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(evm): include minHeight in VoteConfirmDeposit result event #1240

Merged
merged 4 commits into from
Jan 31, 2022

Conversation

jack0son
Copy link
Contributor

Description

This PR allows the microservices to simply fetch the minimum confirmation height for a given VoteConfirmDeposit result event by reading the event attributes.

vald uses the same approach to get this value when responding to a start ConfirmDeposit request.

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues
  • Tag type of change

Steps to Test

Expected Behaviour

Other Notes

@@ -776,10 +776,13 @@ func (s msgServer) VoteConfirmDeposit(c context.Context, req *types.VoteConfirmD
return nil, fmt.Errorf("cross-chain sender has no recipient")
}

height, _ := keeper.GetRequiredConfirmationHeight(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't think you should ignore the error here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks - have handled the bool that's returned

@jack0son
Copy link
Contributor Author

Copy link
Contributor

@cgorenflo cgorenflo left a comment

Choose a reason for hiding this comment

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

blocking because of @sammy1991106's comment

@jack0son jack0son enabled auto-merge (squash) January 28, 2022 07:56
auto-merge was automatically disabled January 28, 2022 07:56

Pull Request is not mergeable

@jack0son jack0son enabled auto-merge (squash) January 31, 2022 09:13
@jack0son jack0son dismissed cgorenflo’s stale review January 31, 2022 09:14

Addressed Sammy's comment.

@jack0son jack0son merged commit 30663fa into main Jan 31, 2022
@jack0son jack0son deleted the feat/evm-vote-deposit-height branch January 31, 2022 09:18
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