From 8b8560d91417e77f85e646b74b4d366ae4d96d75 Mon Sep 17 00:00:00 2001 From: gohumble Date: Sun, 15 Oct 2023 11:48:32 +0200 Subject: [PATCH] fix config --- cmd/cashu/feni/config.go | 6 ------ cmd/cashu/feni/invoice.go | 2 +- cmd/cashu/feni/prompt.go | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/cmd/cashu/feni/config.go b/cmd/cashu/feni/config.go index 3cef51c..22fc677 100644 --- a/cmd/cashu/feni/config.go +++ b/cmd/cashu/feni/config.go @@ -1,7 +1 @@ package feni - -import ( - "github.com/cashubtc/cashu-feni/wallet" -) - -var Config wallet.Config diff --git a/cmd/cashu/feni/invoice.go b/cmd/cashu/feni/invoice.go index 8843dc8..5faf92f 100644 --- a/cmd/cashu/feni/invoice.go +++ b/cmd/cashu/feni/invoice.go @@ -30,7 +30,7 @@ func mintCmd(wallet *wallet.Wallet, params cobraParameter) { panic(err) } if amount > 0 { - if !Config.Lightning { + if !wallet.Config.Lightning { if _, err := wallet.Mint(uint64(amount), hash); err != nil { log.Error(err) } diff --git a/cmd/cashu/feni/prompt.go b/cmd/cashu/feni/prompt.go index 85f4d00..0c716cb 100644 --- a/cmd/cashu/feni/prompt.go +++ b/cmd/cashu/feni/prompt.go @@ -99,7 +99,6 @@ func (co CobraPrompt) Run() { }() promptArgs := co.parseArgs(in) - os.Args = append([]string{os.Args[0]}, promptArgs...) if err := co.RootCmd.Command().Execute(); err != nil { if co.OnErrorFunc != nil {