Skip to content

Commit

Permalink
fix: put a pointer to the store for marshalability (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored May 8, 2024
1 parent 5568613 commit 486ae0c
Showing 1 changed file with 2 additions and 2 deletions.
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(_ *builtin.ActorTree) error {
f090Migration := func(actors *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 := adtStore.Put(ctx, f090NewSt)
h, err := actors.Store.Put(ctx, &f090NewSt)
if err != nil {
return xerrors.Errorf("failed to write new f090 state: %w", err)
}
Expand Down

0 comments on commit 486ae0c

Please sign in to comment.