Skip to content

Commit 4d39aea

Browse files
fix: review feedback
1 parent b1cd477 commit 4d39aea

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

cmd/rofl/common/manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func MaybeLoadManifestAndSetNPA(cfg *cliConfig.Config, npa *common.NPASelection,
7272
return nil, "", nil, fmt.Errorf("no deployments configured\nHint: use `oasis rofl create` to register a new ROFL app and create a deployment")
7373
}
7474
printAvailableDeployments(manifest)
75-
return nil, "", nil, fmt.Errorf("no default deployment configured\nHint: use `oasis rofl set-default <name>` to set a default deployment")
75+
return nil, "", nil, fmt.Errorf("no deployment selected\nHint: Run this command with --deployment to select one or `oasis rofl set-default <name>` to set a default deployment")
7676
}
7777

7878
d, ok := manifest.Deployments[deployment]

docs/rofl.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ requirements.
3636
## Create a new ROFL app on the network {#create}
3737

3838
Use `rofl create` to register a new ROFL app on the network using an existing
39-
manifest.
39+
manifest. The deployment will be named after the selected network (e.g.
40+
`testnet`, `mainnet`).
4041

4142
You can also define specific [Network, ParaTime and Account][npa] parameters
42-
as those get recorded into the manfiest so you don't need to specify them on
43+
as those get recorded into the manifest so you don't need to specify them on
4344
each invocation:
4445

4546
![code shell](../examples/rofl/create.in.static)
@@ -72,6 +73,13 @@ derivation schemes:
7273
[Stake Requirements]: https://github.com/oasisprotocol/docs/blob/main/docs/node/run-your-node/prerequisites/stake-requirements.md
7374
[smart contract address derivation]: https://ethereum.org/en/developers/docs/accounts/#contract-accounts
7475

76+
## Set Default Deployment {#set-default}
77+
78+
To change the default deployment used by ROFL commands, use
79+
`rofl set-default <name>`:
80+
81+
![code shell](../examples/rofl/set-default.in.static)
82+
7583
## Build ROFL {#build}
7684

7785
The `rofl build` command will execute a series of build commands depending on
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oasis rofl set-default testnet

0 commit comments

Comments
 (0)