Cross-contract calling: simple debugger (#14678)

* Provide basic breakpoints

* Rename to Observer

* Rename feature. Single trait. Borrow-checker

* : frame_system::Config

* Confused type name

* Minor bugs

* pub trait

* No unnecessary cloning

* Make node compile with all features

* Move everything debug-related to a single module

* Add docs and implementation for ()

* fmt

* Make it feature-gated or for tests

* Prepare testing kit

* Testcase

* Fmt

* Use feature in dev-deps

* ?

* feature propagation

* AAAA

* lol, that doesn't make much sense to me

* Turn on

* clippy

* Remove self dep

* fmt, feature-gating test

* Noop to trigger CI

* idk

* add feature to pipeline

* Corrupt test to see if it is actually being run

* Revert change

* Doc for conf type

* Review

* Imports

* ...

* Remove debug for kitchen-sink

* Move test

* Fix imports

* I must have already tried this one...
This commit is contained in:
Piotr Mikołajczyk
2023-08-05 16:15:03 +02:00
committed by GitHub
parent 32bd1c397b
commit b24b66c991
9 changed files with 216 additions and 3 deletions
+3
View File
@@ -16,6 +16,7 @@
// limitations under the License.
mod pallet_dummy;
mod unsafe_debug;
use self::test_utils::{ensure_stored, expected_deposit, hash};
use crate::{
@@ -464,6 +465,8 @@ impl Config for Test {
type Migrations = crate::migration::codegen::BenchMigrations;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type MaxDelegateDependencies = MaxDelegateDependencies;
#[cfg(feature = "unsafe-debug")]
type Debug = unsafe_debug::TestDebugger;
}
pub const ALICE: AccountId32 = AccountId32::new([1u8; 32]);