Fix compilation error (#3692)

This commit is contained in:
Jimmy Chen 2022-11-07 00:46:48 +08:00 committed by GitHub
parent fc0b06a039
commit cb393f5b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ pub fn upgrade_to_eip4844<E: EthSpec>(
let previous_fork_version = if cfg!(feature ="withdrawals") {
pre.fork.current_version
} else {
spec.bellatrix_fork_epoch
spec.bellatrix_fork_version
};
// Where possible, use something like `mem::take` to move fields from behind the &mut