Skip to content

Commit

Permalink
Fix compute_fork_version
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Jan 11, 2024
1 parent 548863d commit 5f5c7cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/near/eth2-utility/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ impl NetworkConfig {
}

pub fn compute_fork_version(&self, epoch: Epoch) -> Option<ForkVersion> {
if epoch >= self.deneb_fork_epoch {
return Some(self.deneb_fork_version);
}

if epoch >= self.capella_fork_epoch {
return Some(self.capella_fork_version);
}
Expand Down

0 comments on commit 5f5c7cc

Please sign in to comment.