@@ -531,7 +531,7 @@ export class ValidatorStore {
531
531
data : attestationData ,
532
532
} ;
533
533
534
- if ( this . config . getForkSeq ( duty . slot ) >= ForkSeq . electra ) {
534
+ if ( this . config . getForkSeq ( signingSlot ) >= ForkSeq . electra ) {
535
535
return {
536
536
aggregationBits : BitArray . fromSingleBit ( duty . committeeLength , duty . validatorCommitteeIndex ) ,
537
537
data : attestationData ,
@@ -562,7 +562,7 @@ export class ValidatorStore {
562
562
563
563
const signingSlot = aggregate . data . slot ;
564
564
const domain = this . config . getDomain ( signingSlot , DOMAIN_AGGREGATE_AND_PROOF ) ;
565
- const isPostElectra = this . config . getForkSeq ( duty . slot ) >= ForkSeq . electra ;
565
+ const isPostElectra = this . config . getForkSeq ( signingSlot ) >= ForkSeq . electra ;
566
566
const signingRoot = isPostElectra
567
567
? computeSigningRoot ( ssz . electra . AggregateAndProof , aggregateAndProof , domain )
568
568
: computeSigningRoot ( ssz . phase0 . AggregateAndProof , aggregateAndProof , domain ) ;
@@ -802,7 +802,7 @@ export class ValidatorStore {
802
802
throw Error ( `Inconsistent duties during signing: duty.slot ${ duty . slot } != att.slot ${ data . slot } ` ) ;
803
803
}
804
804
805
- const isPostElectra = this . config . getForkSeq ( duty . slot ) >= ForkSeq . electra ;
805
+ const isPostElectra = this . config . getForkSeq ( data . slot ) >= ForkSeq . electra ;
806
806
if ( ! isPostElectra && duty . committeeIndex != data . index ) {
807
807
throw Error (
808
808
`Inconsistent duties during signing: duty.committeeIndex ${ duty . committeeIndex } != att.committeeIndex ${ data . index } `
0 commit comments