Skip to content

Commit

Permalink
Correct sys.init article (#465)
Browse files Browse the repository at this point in the history
* Update sys.init.mdx

Corrected typo and added additional information.

* Update sys.init.mdx

Wording change
  • Loading branch information
Zachava96 authored May 12, 2024
1 parent 399b600 commit fb779ac
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions docs/scripting/trust_scripts/sys.init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: sys.init
description: "Initializes a system, or upgrades its tier"
---

((sys.init)) initializes a system, or upgrades its tier once it is initialized.
((sys.init)) initializes a system, or upgrades its tier once it is initialized. ((sys.init)) also lists what features will be available at the next tier.

### Security Level

Expand All @@ -23,13 +23,13 @@ Cannot be called as a subscript.

### Parameters

#### confirm (required)
#### confirm

The '((%Nconfirm%))' parameter confirms system initialization.

### Return

Returns a ((%LSuccess%)) or ((%DFaliure%)) object.
Returns a ((%LSuccess%)) or ((%DFailure%)) object, or a string.

#### CLI

Expand All @@ -51,6 +51,22 @@ Success
Transferred 1MGC to trust
```

If balance is too low to initialize or upgrade:

```
>>sys.init
Failure
Your account balance of 580K141GC is too low to send 10MGC.
```

If system is already at maximum tier:

```
>>sys.init
Failure
Your system is fully initialized.
```

#### Script

Cannot be called as a subscript.

0 comments on commit fb779ac

Please sign in to comment.