From 7ac64b7765f89f8615fef56e30c2eb1e6cc989da Mon Sep 17 00:00:00 2001 From: samelamin Date: Mon, 11 Dec 2023 14:57:25 +0000 Subject: [PATCH] set who when raising disputes --- pallets/disputes/src/lib.rs | 14 ++++++++++---- runtime/imbue-kusama/src/lib.rs | 2 +- scripts/docker-compose-kusama-archive.yml | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pallets/disputes/src/lib.rs b/pallets/disputes/src/lib.rs index 1fc8ccb9..31e250ea 100644 --- a/pallets/disputes/src/lib.rs +++ b/pallets/disputes/src/lib.rs @@ -89,11 +89,14 @@ pub mod pallet { #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event { /// A dispute has been raised. - DisputeRaised { dispute_key: T::DisputeKey }, + DisputeRaised { + who: AccountIdOf, + dispute_key: T::DisputeKey, + }, /// A disute has been voted on DisputeVotedOn { - dispute_key: T::DisputeKey, who: AccountIdOf, + dispute_key: T::DisputeKey, vote: bool, }, /// A dispute has been completed. @@ -339,7 +342,7 @@ pub mod pallet { let expiration_block = frame_system::Pallet::::block_number().saturating_add(T::VotingTimeLimit::get()); let dispute = Self { - raised_by, + raised_by: raised_by.clone(), jury, votes: Default::default(), specifiers, @@ -356,7 +359,10 @@ pub mod pallet { Ok::<(), DispatchError>(()) })?; - crate::Pallet::::deposit_event(Event::::DisputeRaised { dispute_key }); + crate::Pallet::::deposit_event(Event::::DisputeRaised { + who: raised_by, + dispute_key, + }); Ok(()) } diff --git a/runtime/imbue-kusama/src/lib.rs b/runtime/imbue-kusama/src/lib.rs index 23a387cf..aa522013 100644 --- a/runtime/imbue-kusama/src/lib.rs +++ b/runtime/imbue-kusama/src/lib.rs @@ -101,7 +101,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("imbue"), impl_name: create_runtime_str!("imbue"), authoring_version: 2, - spec_version: 1_100_001, + spec_version: 1_100_002, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 2, diff --git a/scripts/docker-compose-kusama-archive.yml b/scripts/docker-compose-kusama-archive.yml index 26a4c92b..a178155c 100644 --- a/scripts/docker-compose-kusama-archive.yml +++ b/scripts/docker-compose-kusama-archive.yml @@ -2,7 +2,7 @@ version: "3.2" services: imbue-1: container_name: imbue-1 - image: samelamin/imbue:polkadot-v0.9.37-v4 + image: samelamin/imbue:release-polkadot-v1.1.0 ports: - "9615:9615" - "9616:9616"