Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jun 3, 2024
1 parent d2cb7a3 commit c146670
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/zetae2e/config/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ func getClientsFromConfig(ctx context.Context, conf config.Config, accountName c
) {
evmPrivKey, err := conf.Accounts[accountName].PrivateKey()
if err != nil {
return nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, fmt.Errorf("failed to get evm private key for %s: %w", accountName, err)
return nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, fmt.Errorf(
"failed to get evm private key for %s: %w",
accountName,
err,
)
}
btcRPCClient, err := getBtcClient(conf.RPCs.Bitcoin)
if err != nil {
Expand Down Expand Up @@ -95,7 +99,10 @@ func getBtcClient(rpcConf config.BitcoinRPC) (*rpcclient.Client, error) {
}

// getEVMClient get evm client
func getEVMClient(ctx context.Context, rpc string, privateKey *ecdsa.PrivateKey) (*ethclient.Client, *bind.TransactOpts, error) {
func getEVMClient(ctx context.Context,
rpc string,
privateKey *ecdsa.PrivateKey,
) (*ethclient.Client, *bind.TransactOpts, error) {
evmClient, err := ethclient.Dial(rpc)
if err != nil {
return nil, nil, fmt.Errorf("failed to dial evm client: %w", err)
Expand Down
1 change: 1 addition & 0 deletions cmd/zetae2e/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/require"

"github.com/zeta-chain/zetacore/e2e/config"
)

Expand Down
Empty file modified scripts/fmt-imports.sh
100644 → 100755
Empty file.

0 comments on commit c146670

Please sign in to comment.