diff --git a/internal/migrate/staging_validator.go b/internal/migrate/staging_validator.go index fe1a421d3..5f9c95458 100644 --- a/internal/migrate/staging_validator.go +++ b/internal/migrate/staging_validator.go @@ -348,7 +348,13 @@ func (v *stagingValidatorImpl) validateContractUpdate(contract stagedContractUpd if !ok { return fmt.Errorf("unsupported network: %s", v.flow.Network().Name) } - validator.WithUserDefinedTypeChangeChecker(migrations.NewUserDefinedTypeChangeCheckerFunc(chainId)) + + // TODO: extract type requirements from the old contracts + typeRequirements := &migrations.LegacyTypeRequirements{} + + validator.WithUserDefinedTypeChangeChecker( + migrations.NewUserDefinedTypeChangeCheckerFunc(chainId, typeRequirements), + ) err = validator.Validate() if err != nil {