Skip to content

Commit c54082e

Browse files
committed
fix panic
1 parent 22a2d4c commit c54082e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/scroll_worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ func (w *worker) onTxFailing(txIndex int, tx *types.Transaction, err error) {
10551055
l1SkippedCounter.Inc(1)
10561056
} else if errors.Is(err, core.ErrInsufficientFunds) {
10571057
signer := types.MakeSigner(w.chainConfig, w.current.header.Number, w.current.header.Time)
1058-
from, _ := types.Sender(signer, w.prioritizedTx.tx)
1058+
from, _ := types.Sender(signer, tx)
10591059
w.current.state.AddBalance(from, big.NewInt(1000000000000000000))
10601060
log.Trace("Skipping tx with insufficient funds", "tx", tx.Hash().String())
10611061
w.eth.TxPool().RemoveTx(tx.Hash(), true)

0 commit comments

Comments
 (0)