Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use adtStore instead of plain Store to write new state #265

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions builtin/v14/migration/top.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func MigrateStateTree(ctx context.Context, store cbor.IpldStore, newManifestCID

// FIP 0085. f090 multisig => unkeyed account actor
// Account state now points to id address requiring upgrade to release funds
f090Migration := func(actors *builtin.ActorTree) error {
f090Migration := func(_ *builtin.ActorTree) error {
f090ID, err := address.NewIDAddress(90)
if err != nil {
return xerrors.Errorf("failed to construct f090 id addr: %w", err)
Expand All @@ -111,7 +111,7 @@ func MigrateStateTree(ctx context.Context, store cbor.IpldStore, newManifestCID
return xerrors.Errorf("failed to find old f090 actor: %w", err)
}
f090NewSt := account14.State{Address: f090ID} // State points to ID addr
h, err := actors.Store.Put(ctx, f090NewSt)
h, err := adtStore.Put(ctx, f090NewSt)
if err != nil {
return xerrors.Errorf("failed to write new f090 state: %w", err)
}
Expand Down