From 5f5c7cc6bbfce6f28f03f0738bc53430bbf827c1 Mon Sep 17 00:00:00 2001 From: karim-en Date: Thu, 11 Jan 2024 19:05:45 +0000 Subject: [PATCH] Fix `compute_fork_version` --- contracts/near/eth2-utility/src/consensus.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/near/eth2-utility/src/consensus.rs b/contracts/near/eth2-utility/src/consensus.rs index bb8461d6..828f8f9d 100644 --- a/contracts/near/eth2-utility/src/consensus.rs +++ b/contracts/near/eth2-utility/src/consensus.rs @@ -101,6 +101,10 @@ impl NetworkConfig { } pub fn compute_fork_version(&self, epoch: Epoch) -> Option { + if epoch >= self.deneb_fork_epoch { + return Some(self.deneb_fork_version); + } + if epoch >= self.capella_fork_epoch { return Some(self.capella_fork_version); }