Skip to content

Commit

Permalink
Merge pull request #3460 from onflow/bastian/3459-emit-capcon-issue-e…
Browse files Browse the repository at this point in the history
…vents
  • Loading branch information
turbolent committed Jul 12, 2024
2 parents 0d8f495 + 6014fbe commit 38a2e4d
Show file tree
Hide file tree
Showing 13 changed files with 951 additions and 146 deletions.
12 changes: 6 additions & 6 deletions migrations/capcons/linkmigration.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type LinkMigrationReporter interface {

// LinkValueMigration migrates all links to capability controllers.
type LinkValueMigration struct {
CapabilityMapping *CapabilityMapping
AccountIDGenerator stdlib.AccountIDGenerator
Reporter LinkMigrationReporter
CapabilityMapping *CapabilityMapping
Handler stdlib.CapabilityControllerIssueHandler
Reporter LinkMigrationReporter
}

var _ migrations.ValueMigration = &LinkValueMigration{}
Expand Down Expand Up @@ -98,7 +98,7 @@ func (m *LinkValueMigration) Migrate(
}

reporter := m.Reporter
accountIDGenerator := m.AccountIDGenerator
handler := m.Handler

locationRange := interpreter.EmptyLocationRange

Expand Down Expand Up @@ -180,7 +180,7 @@ func (m *LinkValueMigration) Migrate(
capabilityID, _ = stdlib.IssueStorageCapabilityController(
inter,
locationRange,
accountIDGenerator,
handler,
accountAddress,
borrowType,
targetPath,
Expand All @@ -190,7 +190,7 @@ func (m *LinkValueMigration) Migrate(
capabilityID, _ = stdlib.IssueAccountCapabilityController(
inter,
locationRange,
accountIDGenerator,
handler,
accountAddress,
borrowType,
)
Expand Down
Loading

0 comments on commit 38a2e4d

Please sign in to comment.