Skip to content

Commit 3743bd0

Browse files
committed
lint
1 parent 6e0840e commit 3743bd0

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

  • engine/cld/legacy/cli/commands

engine/cld/legacy/cli/commands/evm.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ var (
246246

247247
func (c Commands) newEvmNodesFund(domain domain.Domain) *cobra.Command {
248248
var (
249-
ethAmount string
250-
weiAmount string
251-
use1559 bool
249+
ethAmount string
250+
weiAmount string
251+
use1559 bool
252252
)
253253

254254
cmd := cobra.Command{
@@ -259,12 +259,12 @@ func (c Commands) newEvmNodesFund(domain domain.Domain) *cobra.Command {
259259
RunE: func(cmd *cobra.Command, args []string) error {
260260
envKey, _ := cmd.Flags().GetString("environment")
261261
chainselector, _ := cmd.Flags().GetUint64("selector")
262-
262+
263263
// Check that exactly one of --eth or --amount is provided
264264
if ethAmount != "" && weiAmount != "" {
265265
return errors.New("cannot use both --eth and --amount flags. Use --eth for ETH amounts (e.g., --eth 10) or --amount for wei amounts")
266266
}
267-
267+
268268
if ethAmount == "" && weiAmount == "" {
269269
return errors.New("either --eth or --amount flag is required. Use --eth for ETH amounts (e.g., --eth 10) or --amount for wei amounts")
270270
}
@@ -280,7 +280,7 @@ func (c Commands) newEvmNodesFund(domain domain.Domain) *cobra.Command {
280280
return fmt.Errorf("chain not found for selector %d", chainselector)
281281
}
282282
chain := env.BlockChains.EVMChains()[cs.Selector]
283-
283+
284284
var targetAmount *big.Int
285285
if ethAmount != "" {
286286
// Parse amount as ETH and convert to wei
@@ -320,12 +320,12 @@ func (c Commands) newEvmNodesFund(domain domain.Domain) *cobra.Command {
320320
cmd.Println("Skipping bootstrap node", node)
321321
continue
322322
}
323-
b, err := chain.Client.BalanceAt(cmd.Context(), common.HexToAddress(chainConfig.AccountAddress), nil)
324-
if err != nil {
325-
return fmt.Errorf("failed to get balance: %w", err)
326-
}
327-
cmd.Printf("Current balance %d for %s on node %s\n", b, chainConfig.AccountAddress, node)
328-
// Let's fund the difference.
323+
b, err := chain.Client.BalanceAt(cmd.Context(), common.HexToAddress(chainConfig.AccountAddress), nil)
324+
if err != nil {
325+
return fmt.Errorf("failed to get balance: %w", err)
326+
}
327+
cmd.Printf("Current balance %d for %s on node %s\n", b, chainConfig.AccountAddress, node)
328+
// Let's fund the difference.
329329
if b.Cmp(targetAmount) < 0 {
330330
amount := big.NewInt(0).Sub(targetAmount, b)
331331
cmd.Printf("Current balance insufficient, funding node %s's address %s with %d\n", node, chainConfig.AccountAddress, amount)

0 commit comments

Comments
 (0)