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

Add ChainId to Starknet and Comet client state #173

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ use core::num::traits::Zero;
use starknet_ibc_clients::cometbft::CometErrors;
use starknet_ibc_core::client::{Height, HeightPartialOrd, Status, StatusTrait};

#[derive(Clone, Debug, Drop, Hash, PartialEq, Serde, starknet::Store)]
#[derive(Clone, Debug, Drop, PartialEq, Serde, starknet::Store)]
pub struct CometClientState {
pub latest_height: Height,
pub trusting_period: u64,
pub unbonding_period: u64,
pub status: Status,
pub chain_id: ByteArray,
}

#[generate_trait]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub impl CometClientConfigImpl of CometClientConfigTrait {
trusting_period: *self.trusting_period,
unbonding_period: *self.unbonding_period,
status: Status::Active,
chain_id: "dummy_chain",
};

Serde::serialize(@client_state, ref serialized_client_state);
Expand Down
Loading
Loading