Skip to content

Commit eabe7e0

Browse files
fix: remove API key from error output in wallet create
Prevent accidental exposure of the API key in CLI error messages when local wallet save fails during wallet creation.
1 parent e0af1e9 commit eabe7e0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/wallet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ func runWalletCreate(cmd *cobra.Command, args []string) {
204204
if err != nil {
205205
output.APIError("CONFIG_ERROR",
206206
fmt.Sprintf("Failed to save wallet locally: %v", err),
207-
"Re-run 'botwallet wallet create' to try again",
208-
map[string]interface{}{"api_key": apiKey})
207+
"Re-run 'botwallet wallet create' to try again", nil)
209208
return
210209
}
211210

0 commit comments

Comments
 (0)