Skip to content

Commit

Permalink
debug: this compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jan 10, 2025
1 parent 546bd98 commit 31af839
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,31 @@ delegate_components! {
symbol!("latest_height"),
EncodeLengthDelimitedProtoField<1, UseContext>,
>,
EncodeField<
symbol!("chain_id"),
EncodeLengthDelimitedProtoField<2, UseContext>,
>,
// EncodeField<
// symbol!("chain_id"),
// EncodeLengthDelimitedProtoField<2, UseContext>,
// >,
]>,
MutDecoderComponent: DecodeFrom<
Self,
CombineEncoders<Product![
DecodeRequiredProtoField<1, UseContext>,
DecodeRequiredProtoField<2, UseContext>,
// DecodeRequiredProtoField<2, UseContext>,
]>
>,
}
}

impl Transformer for EncodeStarknetClientState {
type From = Product![Height, ChainId];
type From = Product![Height /*ChainId*/];

type To = StarknetClientState;

fn transform(product![latest_height, chain_id]: Self::From) -> Self::To {
fn transform(product![latest_height /*chain_id*/]: Self::From) -> Self::To {
StarknetClientState {
latest_height,
chain_id,
// chain_id,
chain_id: ChainId::new("starknet").unwrap(),
}
}
}

0 comments on commit 31af839

Please sign in to comment.