Update documentation for SafeMode and TxPause Pallets (#2413)

# Description

Documentation for the TxPause and SafeMode pallets.

Based on reading and the notes from the following related PRs:
- https://github.com/paritytech/substrate/pull/12092

I believe this also completes the checklist to be able to close the
related PRs:
- Close #302 
- Close #274

---------

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
This commit is contained in:
Wil Wade
2023-11-25 05:30:57 -05:00
committed by GitHub
parent d5d15a1802
commit 73ff1c3647
7 changed files with 122 additions and 0 deletions
+3
View File
@@ -25,6 +25,7 @@ use sp_runtime::DispatchError;
// GENERAL SUCCESS/POSITIVE TESTS ---------------------
#[docify::export]
#[test]
fn can_pause_specific_call() {
new_test_ext().execute_with(|| {
@@ -43,6 +44,7 @@ fn can_pause_specific_call() {
});
}
#[docify::export]
#[test]
fn can_pause_all_calls_in_pallet_except_on_whitelist() {
new_test_ext().execute_with(|| {
@@ -64,6 +66,7 @@ fn can_pause_all_calls_in_pallet_except_on_whitelist() {
});
}
#[docify::export]
#[test]
fn can_unpause_specific_call() {
new_test_ext().execute_with(|| {