File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import (
22
22
"fmt"
23
23
"math/big"
24
24
25
+ "slices"
26
+
25
27
"github.com/ethereum/go-ethereum/common"
26
28
"github.com/ethereum/go-ethereum/crypto/kzg4844"
27
29
"github.com/ethereum/go-ethereum/params"
@@ -181,9 +183,9 @@ func (tx *BlobTx) copy() TxData {
181
183
}
182
184
if tx .Sidecar != nil {
183
185
cpy .Sidecar = & BlobTxSidecar {
184
- Blobs : append ([]kzg4844. Blob ( nil ), tx .Sidecar .Blobs ... ),
185
- Commitments : append ([]kzg4844. Commitment ( nil ), tx .Sidecar .Commitments ... ),
186
- Proofs : append ([]kzg4844. Proof ( nil ), tx .Sidecar .Proofs ... ),
186
+ Blobs : slices . Clone ( tx .Sidecar .Blobs ),
187
+ Commitments : slices . Clone ( tx .Sidecar .Commitments ),
188
+ Proofs : slices . Clone ( tx .Sidecar .Proofs ),
187
189
}
188
190
}
189
191
return cpy
You can’t perform that action at this time.
0 commit comments