Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Fix SlotData (#25)
Browse files Browse the repository at this point in the history
* Bug fix; make send_transaction 'static

* Update Slotdata impl

---------

Co-authored-by: Preston Evans <[email protected]>
  • Loading branch information
citizen-stig and preston-evans98 authored May 17, 2023
1 parent e793e3b commit e338ade
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ pub struct FilteredCelestiaBlock {
}

impl SlotData for FilteredCelestiaBlock {
type BlockHeader = CelestiaHeader;

fn header(&self) -> &Self::BlockHeader {
&self.header
}

fn hash(&self) -> [u8; 32] {
match self.header.header.hash() {
tendermint::Hash::Sha256(h) => h,
Expand Down

0 comments on commit e338ade

Please sign in to comment.