Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dpunish3r committed Mar 14, 2024
1 parent 2bf1762 commit a0e7ebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ethtxmanager/ethtxmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ func (c *Client) Add(ctx context.Context, to *common.Address, forcedNonce *uint6
gasTipCap = gasTipCap.Mul(gasTipCap, big.NewInt(multiplier))
gasPrice = gasPrice.Mul(gasPrice, big.NewInt(multiplier))
blobFeeCap = blobFeeCap.Mul(blobFeeCap, big.NewInt(multiplier))
gas = gas * 12 / 10

gas = gas * 12 / 10 //nolint:gomnd
} else {
// get gas
gas, err = c.etherman.EstimateGas(ctx, c.from, to, value, data)
Expand Down Expand Up @@ -962,6 +961,7 @@ func (c *Client) ProcessPendingMonitoredTxs(ctx context.Context, resultHandler R
}
}

// EncodeBlobData encodes data into blob data type
func (c *Client) EncodeBlobData(data []byte) (kzg4844.Blob, error) {
dataLen := len(data)
if dataLen > params.BlobTxFieldElementsPerBlob*(params.BlobTxBytesPerFieldElement-1) {
Expand All @@ -988,6 +988,7 @@ func (c *Client) EncodeBlobData(data []byte) (kzg4844.Blob, error) {
return blob, nil
}

// MakeBlobSidecar constructs a blob tx sidecar
func (c *Client) MakeBlobSidecar(blobs []kzg4844.Blob) *types.BlobTxSidecar {
var commitments []kzg4844.Commitment
var proofs []kzg4844.Proof
Expand Down

0 comments on commit a0e7ebd

Please sign in to comment.