Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Oct 2, 2024
1 parent d4e39ed commit b40ad68
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ethtxmanager/ethtxmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,19 @@ func pendingL1Txs(URL string, from common.Address, httpHeaders map[string]string
}

// Add a transaction to be sent and monitored
func (c *Client) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error) {
func (c *Client) Add(ctx context.Context, to *common.Address, value *big.Int,
data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error) {
return c.add(ctx, to, value, data, gasOffset, sidecar, 0)
}

// AddWithGas adds a transaction to be sent and monitored with a defined gas to be used so it's not estimated
func (c *Client) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error) {
func (c *Client) AddWithGas(ctx context.Context, to *common.Address,
value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error) {
return c.add(ctx, to, value, data, gasOffset, sidecar, gas)
}

func (c *Client) add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error) {
func (c *Client) add(ctx context.Context, to *common.Address,
value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error) {
var err error

// get gas price
Expand Down

0 comments on commit b40ad68

Please sign in to comment.