Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
gohumble committed Oct 15, 2023
1 parent 36647fa commit 8b8560d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions cmd/cashu/feni/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
package feni

import (
"github.com/cashubtc/cashu-feni/wallet"
)

var Config wallet.Config
2 changes: 1 addition & 1 deletion cmd/cashu/feni/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion cmd/cashu/feni/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b8560d

Please sign in to comment.