mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Freeze tutorials: remove TODOs for code samples
This commit is contained in:
@@ -57,7 +57,7 @@ For example:
|
||||
|
||||
_JavaScript_
|
||||
|
||||
{{ include_code("_code-samples/freeze/set-no-freeze.js", language="js") }}
|
||||
{{ include_code("_code-samples/freeze/set-no-freeze.js", start_with="// Submit an AccountSet transaction", end_before="// Done", language="js") }}
|
||||
|
||||
_WebSocket_
|
||||
|
||||
@@ -80,7 +80,6 @@ _WebSocket_
|
||||
|
||||
<!-- MULTICODE_BLOCK_END -->
|
||||
|
||||
***TODO: add start_with / end_before to all the include_code macros.***
|
||||
|
||||
### {{n.next()}}. Wait for Validation
|
||||
|
||||
@@ -92,12 +91,12 @@ Most transactions are accepted into the next ledger version after they're submit
|
||||
|
||||
After the transaction is validated, you can check your account's settings to confirm that the No Freeze flag is enabled. You can do this by calling the [account_info method][] and checking the value of the account's `Flags` field to see if the [`lsfNoFreeze` bit (`0x00200000`)](accountroot.html#accountroot-flags) is enabled.
|
||||
|
||||
|
||||
***TODO: JS code sample for checking No Freeze***
|
||||
|
||||
|
||||
<!-- MULTICODE_BLOCK_START -->
|
||||
|
||||
_JavaScript_
|
||||
|
||||
{{ include_code("_code-samples/freeze/check-no-freeze.js", start_with="// Request account info", end_before="await client.disconnect()", language="js") }}
|
||||
|
||||
_WebSocket_
|
||||
|
||||
```json
|
||||
|
||||
@@ -64,7 +64,7 @@ For example:
|
||||
|
||||
_JavaScript_
|
||||
|
||||
{{ include_code("_code-samples/freeze/set-global-freeze.js", language="js") }}
|
||||
{{ include_code("_code-samples/freeze/set-global-freeze.js", language="js", start_with="// Prepare an AccountSet", end_before="// Investigate") }}
|
||||
|
||||
_WebSocket_
|
||||
|
||||
@@ -87,8 +87,6 @@ _WebSocket_
|
||||
|
||||
<!-- MULTICODE_BLOCK_END -->
|
||||
|
||||
***TODO: add start_with / end_before to all the include_code macros.***
|
||||
|
||||
|
||||
### {{n.next()}}. Wait for Validation
|
||||
|
||||
@@ -99,12 +97,12 @@ Most transactions are accepted into the next ledger version after they're submit
|
||||
|
||||
After the transaction is validated, you can check your issuing account's settings to confirm that the Global Freeze flag is enabled. You can do this by calling the [account_info method][] and checking the value of the account's `Flags` field to see if the [`lsfGlobalFreeze` bit (`0x00400000`)](accountroot.html#accountroot-flags) is on.
|
||||
|
||||
|
||||
***TODO: JS code sample for checking Global Freeze***
|
||||
|
||||
|
||||
<!-- MULTICODE_BLOCK_START -->
|
||||
|
||||
_JavaScript_
|
||||
|
||||
{{ include_code("_code-samples/freeze/check-global-freeze.js", language="js", start_with="// Request account info", end_before="await client.disconnect()") }}
|
||||
|
||||
_WebSocket_
|
||||
|
||||
```json
|
||||
@@ -174,7 +172,7 @@ For example:
|
||||
|
||||
_JavaScript_
|
||||
|
||||
{{ include_code("_code-samples/freeze/set-global-freeze.js", language="js") }}
|
||||
{{ include_code("_code-samples/freeze/set-global-freeze.js", language="js", start_with="// Now we disable", end_before="// Global freeze disabled") }}
|
||||
|
||||
_WebSocket_
|
||||
|
||||
@@ -207,7 +205,6 @@ As before, wait for the previous transaction to be validated by consensus before
|
||||
|
||||
After the transaction is validated, you can confirm the status of the Global Freeze flag in the same way as before: by calling the [account_info method][] and checking the value of the account's `Flags` field to see if the [`lsfGlobalFreeze` bit (`0x00400000`)](accountroot.html#accountroot-flags) is **off**.
|
||||
|
||||
***TODO: examples***
|
||||
|
||||
|
||||
## See Also
|
||||
|
||||
Reference in New Issue
Block a user