Skip to content

Commit

Permalink
fix: exit on nil wallet without explicit error (#91)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed May 22, 2024
1 parent 6147eb1 commit 2b696f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ func Run(output string) {
w, err := bursa.NewDefaultWallet(mnemonic)
if err != nil {
logger.Fatalf("failed to initialize wallet: %s", err)
os.Exit(1)
}
if w == nil {
logger.Fatalf("wallet empty after init... this shouldn't happen")
os.Exit(1)
}

logger.Info("Loaded mnemonic and generated address...")
Expand Down

0 comments on commit 2b696f8

Please sign in to comment.