@@ -11,7 +11,7 @@ import {
11
11
import * as blockFns from "@lodestar/state-transition/block" ;
12
12
import { ssz , phase0 , altair , bellatrix , capella , electra , sszTypesFor } from "@lodestar/types" ;
13
13
import { InputType } from "@lodestar/spec-test-util" ;
14
- import { ACTIVE_PRESET , ForkName , ForkSeq } from "@lodestar/params" ;
14
+ import { ACTIVE_PRESET , ForkName } from "@lodestar/params" ;
15
15
16
16
import { createCachedBeaconStateTest } from "../../utils/cachedBeaconState.js" ;
17
17
import { expectEqualBeaconState , inputTypeSszTreeViewDU } from "../utils/expectEqualBeaconState.js" ;
@@ -57,11 +57,6 @@ const operationFns: Record<string, BlockProcessFn<CachedBeaconStateAllForks>> =
57
57
blockFns . processDeposit ( fork , state , testCase . deposit ) ;
58
58
} ,
59
59
60
- deposit_receipt : ( state , testCase : { deposit_receipt : electra . DepositRequest } ) => {
61
- const fork = state . config . getForkSeq ( state . slot ) ;
62
- blockFns . processDepositRequest ( fork , state as CachedBeaconStateElectra , testCase . deposit_receipt ) ;
63
- } ,
64
-
65
60
proposer_slashing : ( state , testCase : { proposer_slashing : phase0 . ProposerSlashing } ) => {
66
61
const fork = state . config . getForkSeq ( state . slot ) ;
67
62
blockFns . processProposerSlashing ( fork , state , testCase . proposer_slashing ) ;
@@ -89,15 +84,18 @@ const operationFns: Record<string, BlockProcessFn<CachedBeaconStateAllForks>> =
89
84
} ,
90
85
91
86
withdrawals : ( state , testCase : { execution_payload : capella . ExecutionPayload } ) => {
92
- blockFns . processWithdrawals ( ForkSeq . capella , state as CachedBeaconStateCapella , testCase . execution_payload ) ;
87
+ const fork = state . config . getForkSeq ( state . slot ) ;
88
+ blockFns . processWithdrawals ( fork , state as CachedBeaconStateCapella , testCase . execution_payload ) ;
93
89
} ,
94
90
95
91
withdrawal_request : ( state , testCase : { withdrawal_request : electra . WithdrawalRequest } ) => {
96
- blockFns . processWithdrawalRequest ( ForkSeq . electra , state as CachedBeaconStateElectra , testCase . withdrawal_request ) ;
92
+ const fork = state . config . getForkSeq ( state . slot ) ;
93
+ blockFns . processWithdrawalRequest ( fork , state as CachedBeaconStateElectra , testCase . withdrawal_request ) ;
97
94
} ,
98
95
99
96
deposit_request : ( state , testCase : { deposit_request : electra . DepositRequest } ) => {
100
- blockFns . processDepositRequest ( ForkSeq . electra , state as CachedBeaconStateElectra , testCase . deposit_request ) ;
97
+ const fork = state . config . getForkSeq ( state . slot ) ;
98
+ blockFns . processDepositRequest ( fork , state as CachedBeaconStateElectra , testCase . deposit_request ) ;
101
99
} ,
102
100
103
101
consolidation_request : ( state , testCase : { consolidation_request : electra . ConsolidationRequest } ) => {
@@ -140,7 +138,6 @@ const operations: TestRunnerFn<OperationsTestCase, BeaconStateAllForks> = (fork,
140
138
block : ssz [ fork ] . BeaconBlock ,
141
139
body : ssz [ fork ] . BeaconBlockBody ,
142
140
deposit : ssz . phase0 . Deposit ,
143
- deposit_receipt : ssz . electra . DepositRequest ,
144
141
proposer_slashing : ssz . phase0 . ProposerSlashing ,
145
142
voluntary_exit : ssz . phase0 . SignedVoluntaryExit ,
146
143
// Altair
0 commit comments