Skip to content

Commit

Permalink
fix: NPE (bnb-chain#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun authored Apr 18, 2024
1 parent cbcd26c commit 5cc253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/bid_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ func (r *BidRuntime) commitTransaction(chain *core.BlockChain, chainConfig *para
r.env.state.SetTxContext(tx.Hash(), r.env.tcount)

if tx.Type() == types.BlobTxType {
sc := types.NewBlobSidecarFromTx(tx)
sc = types.NewBlobSidecarFromTx(tx)
if sc == nil {
return errors.New("blob transaction without blobs in miner")
}
Expand Down

0 comments on commit 5cc253a

Please # to comment.