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

integrate ibc-types2 #2706

Merged
merged 13 commits into from
Jun 29, 2023
Merged

integrate ibc-types2 #2706

merged 13 commits into from
Jun 29, 2023

Conversation

avahowell
Copy link
Contributor

No description provided.

@avahowell avahowell temporarily deployed to smoke-test June 23, 2023 23:59 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test June 24, 2023 00:33 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test June 26, 2023 22:31 — with GitHub Actions Inactive
@avahowell avahowell marked this pull request as ready for review June 26, 2023 22:31
@@ -62,10 +57,12 @@ impl MsgHandler for MsgChannelOpenAck {
version: self.version_on_b.clone(),
};

let proof = MerkleProof::try_from(self.proof_chan_end_on_b.clone())?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this should move to the MsgChannelOpenAck domain type

proof_verification::verify_connection_state(
&trusted_client_state,
self.proofs_height_on_b,
&ibc_types2::core::commitment::MerklePrefix {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should be using try_from

.connection_id()
.ok_or_else(|| anyhow::anyhow!("invalid counterparty"))?,
),
&MerklePrefix {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto, this should be using try_into instead of manually constructing MerklePrefix

.ok_or_else(|| anyhow::anyhow!("invalid counterparty"))?,
),
&MerklePrefix {
key_prefix: connection.counterparty.prefix,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

perhaps counterparty.prefix should be a MerklePrefix type at the domain type level instead?

@avahowell avahowell changed the title wip: integrate ibc-types2 integrate ibc-types2 Jun 29, 2023
@avahowell
Copy link
Contributor Author

Updated after code review with @plaidfinch

@avahowell avahowell temporarily deployed to smoke-test June 29, 2023 19:22 — with GitHub Actions Inactive
@avahowell avahowell temporarily deployed to smoke-test June 29, 2023 20:54 — with GitHub Actions Inactive
@avahowell avahowell merged commit c8d5578 into main Jun 29, 2023
@avahowell avahowell deleted the ibc-types branch June 29, 2023 21:19
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.

1 participant