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

Removed TryFromRaw, implemented DomainType where needed #252

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

greg-szabo
Copy link
Member

Closes: #249

Description

TryFromRaw was removed and replaced with the DomainType trait. Tests were updated and I found that the ConnectionID integration test fails because the simd application protobuf is outdated. (Commented out for now.)


For contributor use:

  • Unit tests written
  • Added test to CI if applicable
  • Updated CHANGELOG_PENDING.md
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments
  • Re-reviewed Files changed in the Github PR explorer

Copy link
Member

@romac romac left a comment

Choose a reason for hiding this comment

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

Great stuff, thanks :)

@@ -47,14 +47,18 @@ fn simd_chain() -> CosmosSDKChain {
#[test]
#[ignore]
fn query_connection_id() {
/* the current informaldev/simd image has an incompatible (old?) protobuf implementation
Copy link
Member

Choose a reason for hiding this comment

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

What’s the path forward for re-enabling this test? Do we just need to wait for the image to be updated to the new protobuf implementation? What does that mean actually? New protobuf message descriptors?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we need a new docker image with an updated simd application. The protobuf message was updated in the SDK and an extra field added. We have more recent protobuf structs than the simd. (The simd is from the times of game-of-zones phase 1 when a bunch of the protobuf looked different.)

Copy link
Member

@adizere adizere left a comment

Choose a reason for hiding this comment

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

Cool cool! Thanks, Greg.

modules/src/ics03_connection/connection.rs Outdated Show resolved Hide resolved
Co-authored-by: Adi Seredinschi <adi@informal.systems>
@greg-szabo greg-szabo merged commit 9357d66 into master Sep 24, 2020
@greg-szabo greg-szabo deleted the greg/noTryFromRaw branch September 24, 2020 13:03
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…ems#252)

* Removed TryFromRaw, implemented DomainType where needed

* Update modules/src/ics03_connection/connection.rs

Co-authored-by: Adi Seredinschi <adi@informal.systems>

Co-authored-by: Adi Seredinschi <adi@informal.systems>
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.

Implement DomainType
3 participants