From 04d31d3b5058905dc92dcb54b2cbce12ece41d86 Mon Sep 17 00:00:00 2001 From: asamuj <105436033+asamuj@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:12:19 +0800 Subject: [PATCH] fix(miner): use the "from" address as the sender if it is set (#12662) --- cmd/lotus-miner/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-miner/init.go b/cmd/lotus-miner/init.go index b81c42f50e0..6d6fe7362a5 100644 --- a/cmd/lotus-miner/init.go +++ b/cmd/lotus-miner/init.go @@ -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) }