You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This made its implementation a manual dispatching of methods from MockHeader and SyntheticTmBlock. We can avoid this by implementing a HostBlock trait for these two and generalizing an IBC context with a generic with the HostBlock trait bound.
Also, this allows a downstream project to reuse our MockContext with their host block variant.
This was blocked before because the ClientState derive didn't support generics. Since #1016 is resolved, we can use generics with trait bounds in an IBC context.
Version
<= v0.50.0
The text was updated successfully, but these errors were encountered:
Details
Currently,
HostBlock
is implemented as anenum
of different host variants.ibc-rs/ibc-testkit/src/hosts/block.rs
Lines 72 to 75 in d5e8314
This made its implementation a manual dispatching of methods from
MockHeader
andSyntheticTmBlock
. We can avoid this by implementing aHostBlock
trait for these two and generalizing an IBC context with a generic with theHostBlock
trait bound.Also, this allows a downstream project to reuse our
MockContext
with their host block variant.This was blocked before because the
ClientState
derive didn't support generics. Since #1016 is resolved, we can use generics with trait bounds in an IBC context.Version
<= v0.50.0
The text was updated successfully, but these errors were encountered: