Skip to content

Commit

Permalink
pass empty type requirements for now
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 23, 2024
1 parent eb0b08d commit 62ef53d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/migrate/staging_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 62ef53d

Please sign in to comment.