Skip to content

Commit

Permalink
update if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Apr 22, 2024
1 parent 8156f2a commit 8eb8f8c
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 {
if r.env.sidecars == nil || len(r.env.sidecars) == 0 {
if len(r.env.sidecars) == 0 {
return errors.New("blob transaction without blobs in block body")
}
sc, r.env.sidecars = r.env.sidecars[0], r.env.sidecars[1:]
Expand Down

0 comments on commit 8eb8f8c

Please sign in to comment.