onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 62 forks source link

`flow accounts create` does not work in previewnet #1474

Closed jribbink closed 2 months ago

jribbink commented 3 months ago

The Lilico API is used to create accounts in the Flow CLI. However, there are two issues here:

  1. Lilico api does not seem to support previewnet.
  2. CLI doesn't call a different API endpoint for previewnet (currently, there's only an if statement for testnet - so previewnet behaviour defaults to the same as mainnet)

This feature was missed when making the changes needed to support previewnet.