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(08-wasm): implement 'RemoveCodeHash' RPC endpoint #5006

Merged
merged 26 commits into from
Nov 8, 2023

Conversation

srdtrk
Copy link
Member

@srdtrk srdtrk commented Nov 2, 2023

Description

closes: #4951

Commit Message / Changelog Entry

feat(08-wasm): implement 'RemoveCodeHash' RPC endpoint

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@srdtrk srdtrk added the 08-wasm label Nov 2, 2023
@srdtrk srdtrk marked this pull request as ready for review November 2, 2023 12:16
@srdtrk srdtrk linked an issue Nov 2, 2023 that may be closed by this pull request
3 tasks
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Had a quick look!

modules/light-clients/08-wasm/keeper/msg_server.go Outdated Show resolved Hide resolved
proto/ibc/lightclients/wasm/v1/tx.proto Outdated Show resolved Hide resolved
Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

nice, left a couple of comments for minor things

modules/light-clients/08-wasm/types/msgs.go Outdated Show resolved Hide resolved
modules/light-clients/08-wasm/types/msgs.go Outdated Show resolved Hide resolved
modules/light-clients/08-wasm/types/msgs_test.go Outdated Show resolved Hide resolved
modules/light-clients/08-wasm/types/msgs_test.go Outdated Show resolved Hide resolved
proto/ibc/lightclients/wasm/v1/tx.proto Outdated Show resolved Hide resolved
Comment on lines +372 to +373
// Verify events
suite.Require().Len(events, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't add this necessarily but if we do we can atleast move getting the events in the successful case.

Copy link
Member Author

Choose a reason for hiding this comment

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

You think we should emit events?

Copy link
Member

Choose a reason for hiding this comment

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

is there actually 0 events emitted? hmm, would've thought sdk baseapp would emit some std ones

Copy link
Member Author

Choose a reason for hiding this comment

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

The context is not going through the baseapp. I'm directly calling the msg_server handler with the context

Copy link
Member

Choose a reason for hiding this comment

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

makes sense!

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure re events. I dont think they'd hurt tho.

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Looks clean to me. Just left one additional comment on test helper usage.

Thank you! 🙏

modules/light-clients/08-wasm/keeper/msg_server_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

pending comment on testing codec's registered, lgtm!

@srdtrk srdtrk merged commit 729cb09 into feat/wasm-clients Nov 8, 2023
60 checks passed
@srdtrk srdtrk deleted the serdar/issue#4951-remove-codehash branch November 8, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement RemoveCodeHash RPC endpoint
5 participants