diff --git a/cmd/zetae2e/init.go b/cmd/zetae2e/init.go index 626cc37831..6f98c24102 100644 --- a/cmd/zetae2e/init.go +++ b/cmd/zetae2e/init.go @@ -20,12 +20,14 @@ func NewInitCmd() *cobra.Command { } InitCmd.Flags().StringVar(&initConf.RPCs.EVM, "ethURL", initConf.RPCs.EVM, "--ethURL http://eth:8545") - InitCmd.Flags().StringVar(&initConf.RPCs.ZetaCoreGRPC, "grpcURL", initConf.RPCs.ZetaCoreGRPC, "--grpcURL zetacore0:9090") + InitCmd.Flags(). + StringVar(&initConf.RPCs.ZetaCoreGRPC, "grpcURL", initConf.RPCs.ZetaCoreGRPC, "--grpcURL zetacore0:9090") InitCmd.Flags(). StringVar(&initConf.RPCs.ZetaCoreRPC, "rpcURL", initConf.RPCs.ZetaCoreRPC, "--rpcURL http://zetacore0:26657") InitCmd.Flags(). StringVar(&initConf.RPCs.Zevm, "zevmURL", initConf.RPCs.Zevm, "--zevmURL http://zetacore0:8545") - InitCmd.Flags().StringVar(&initConf.RPCs.Bitcoin.Host, "btcURL", initConf.RPCs.Bitcoin.Host, "--grpcURL bitcoin:18443") + InitCmd.Flags(). + StringVar(&initConf.RPCs.Bitcoin.Host, "btcURL", initConf.RPCs.Bitcoin.Host, "--btcURL bitcoin:18443") InitCmd.Flags(). StringVar(&initConf.RPCs.Solana, "solanaURL", initConf.RPCs.Solana, "--solanaURL http://solana:8899") InitCmd.Flags(). diff --git a/e2e/config/config.go b/e2e/config/config.go index 2b438992fa..815adca1b5 100644 --- a/e2e/config/config.go +++ b/e2e/config/config.go @@ -215,6 +215,7 @@ func WriteConfig(file string, config Config) error { defer fHandle.Close() encoder := yaml.NewEncoder(fHandle) + defer encoder.Close() encoder.SetIndent(2) err = encoder.Encode(config) if err != nil {