Skip to content

Commit

Permalink
Added zeroed upgrade_sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Aug 30, 2024
1 parent 151bf67 commit b8ea968
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pages/ibc/diy-protocol/channel-lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ the contract sends the message to initiate the handshake and immediately set to

<details>
<summary>Advanced example: Contract initiating the handshake on its own</summary>

<Callout>
The following example requires the `cosmos-sdk-proto` crate that provides
protobuf types for Cosmos SDK messages.
</Callout>

{" "}
<Callout>
The following example requires the `cosmos-sdk-proto` crate that provides protobuf types for
Cosmos SDK messages.
</Callout>

```rust filename="ibc.rs" template="ibc-channel"
use cosmos_sdk_proto::ibc::core::channel::v1::{
Expand Down Expand Up @@ -244,6 +245,7 @@ pub fn new_msg_channel_open_init(
}),
connection_hops: vec![connection_id],
version: IBC_APP_VERSION.to_string(),
upgrade_sequence: 0,
}),
signer: env.contract.address.to_string(),
})
Expand Down

0 comments on commit b8ea968

Please sign in to comment.