Skip to content

Commit

Permalink
Merge pull request #1718 from onflow/cf/fix-accounts-create
Browse files Browse the repository at this point in the history
Fix accounts create
  • Loading branch information
chasefleming authored Sep 2, 2024
2 parents 1ae8f72 + 70feb4f commit ee2e93c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/accounts/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ func create(
state *flowkit.State,
) (command.Result, error) {
if len(createFlags.Keys) == 0 { // if user doesn't provide any flags go into interactive mode

if len(createFlags.SigAlgo) > 0 || globalFlags.Network != "" {
return nil, fmt.Errorf("You provided flags, but no key. A key is required to create an account in manual mode. Remove flags if you'd like to use interactive mode.")
} else {
return createInteractive(state)
}

return createInteractive(state)
} else {
return createManual(state, flow)
}
Expand Down

0 comments on commit ee2e93c

Please sign in to comment.