diff --git a/data/block/blockV2.go b/data/block/blockV2.go index 6d9e071f..0a690e2e 100644 --- a/data/block/blockV2.go +++ b/data/block/blockV2.go @@ -640,9 +640,7 @@ func (hv2 *HeaderV2) CheckFieldsForNil() error { if err != nil { return err } - if hv2.ScheduledRootHash == nil { - return fmt.Errorf("%w in HeaderV2.ScheduledRootHash", data.ErrNilValue) - } + if hv2.ScheduledAccumulatedFees == nil { return fmt.Errorf("%w in HeaderV2.ScheduledAccumulatedFees", data.ErrNilValue) } diff --git a/data/block/blockV2Checks_test.go b/data/block/blockV2Checks_test.go index 95ecd53c..b44e2d43 100644 --- a/data/block/blockV2Checks_test.go +++ b/data/block/blockV2Checks_test.go @@ -9,7 +9,10 @@ import ( "github.com/stretchr/testify/require" ) -var headerV2ExceptionFields = []string{"Header"} +var headerV2ExceptionFields = []string{ + "Header", + "ScheduledRootHash", +} func TestBlockHeaderV2_Checks(t *testing.T) { t.Parallel()