From 486ae0c0bf1d46bc41b716887658d9f556fe2b22 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 8 May 2024 22:39:43 +1000 Subject: [PATCH] fix: put a pointer to the store for marshalability (#266) --- builtin/v14/migration/top.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/v14/migration/top.go b/builtin/v14/migration/top.go index c4e83ed8..73a9ae3d 100644 --- a/builtin/v14/migration/top.go +++ b/builtin/v14/migration/top.go @@ -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) @@ -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) }