Skip to content

Commit

Permalink
fix(miner): use the "from" address as the sender if it is set (#12662)
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuj authored Oct 31, 2024
1 parent 08f2b15 commit 04d31d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lotus-miner/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func createStorageMiner(ctx context.Context, api v1api.FullNode, ssize abi.Secto
}

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

0 comments on commit 04d31d3

Please sign in to comment.