diff --git a/crates/types/src/bindings.rs b/crates/types/src/bindings.rs index c4a55af..e26c864 100644 --- a/crates/types/src/bindings.rs +++ b/crates/types/src/bindings.rs @@ -5,3 +5,15 @@ sol!( Zenith, "abi/zenith.json" ); + +impl From<&Zenith::BlockSubmitted> for Zenith::BlockHeader { + fn from(event: &Zenith::BlockSubmitted) -> Zenith::BlockHeader { + Zenith::BlockHeader { + rollupChainId: event.rollupChainId, + sequence: event.sequence, + confirmBy: event.confirmBy, + gasLimit: event.gasLimit, + rewardAddress: event.rewardAddress, + } + } +}