Skip to content

Commit 04d31d3

Browse files
authored
fix(miner): use the "from" address as the sender if it is set (#12662)
1 parent 08f2b15 commit 04d31d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/lotus-miner/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ func createStorageMiner(ctx context.Context, api v1api.FullNode, ssize abi.Secto
667667
}
668668

669669
// make sure the sender account exists on chain
670-
_, err = api.StateLookupID(ctx, owner, types.EmptyTSK)
670+
_, err = api.StateLookupID(ctx, sender, types.EmptyTSK)
671671
if err != nil {
672672
return address.Undef, xerrors.Errorf("sender must exist on chain: %w", err)
673673
}

0 commit comments

Comments
 (0)