Skip to content

Commit

Permalink
refactor: make DAChunkRawTx an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Jul 25, 2024
1 parent cb02d63 commit 15d6aa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion encoding/codecv1/codecv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type DABlock = codecv0.DABlock
type DAChunk codecv0.DAChunk

// DAChunkRawTx groups consecutive DABlocks with their transactions.
type DAChunkRawTx codecv0.DAChunkRawTx
type DAChunkRawTx = codecv0.DAChunkRawTx

// DABatch contains metadata about a batch of DAChunks.
type DABatch struct {
Expand Down
3 changes: 2 additions & 1 deletion encoding/codecv2/codecv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"unsafe"

"github.com/klauspost/compress/zstd"

"github.com/scroll-tech/go-ethereum/accounts/abi"
"github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types"
Expand All @@ -42,7 +43,7 @@ type DABlock = codecv1.DABlock
type DAChunk = codecv1.DAChunk

// DAChunkRawTx groups consecutive DABlocks with their transactions.
type DAChunkRawTx codecv1.DAChunkRawTx
type DAChunkRawTx = codecv1.DAChunkRawTx

// DABatch contains metadata about a batch of DAChunks.
type DABatch struct {
Expand Down

0 comments on commit 15d6aa4

Please sign in to comment.