From 62ef53de12196492698500b5c169f7aacd67a5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Fri, 23 Aug 2024 11:44:56 -0700 Subject: [PATCH] pass empty type requirements for now --- internal/migrate/staging_validator.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 {