Skip to content

Commit

Permalink
fix trivial errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabaie committed Oct 10, 2024
1 parent 8716cdf commit 8c749ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions prover/lib/compressor/blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package blob
import (
"bytes"
"errors"
"github.com/ethereum/go-ethereum/core/types"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -70,13 +71,13 @@ func DecompressBlob(blob []byte, dictStore dictionary.Store) ([]byte, error) {
if err != nil {
return nil, err
}
blockObjs := make([]encode.DecodedBlockData, len(blocks))
blockObjs := make([]*types.Block, len(blocks))
var decodedBlock encode.DecodedBlockData
for i, block := range blocks {
decodedBlock, err := blockDecoder(bytes.NewReader(block))
blockObjs[i] = decodedBlock.ToStd()
if err != nil {
if decodedBlock, err = blockDecoder(bytes.NewReader(block)); err != nil {
return nil, err
}
blockObjs[i] = decodedBlock.ToStd()
}
return rlp.EncodeToBytes(blockObjs)
}

0 comments on commit 8c749ba

Please sign in to comment.