Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set who when raising disputes #292

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions pallets/disputes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ pub mod pallet {
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> {
/// A dispute has been raised.
DisputeRaised { dispute_key: T::DisputeKey },
DisputeRaised {
who: AccountIdOf<T>,
dispute_key: T::DisputeKey,
},
/// A disute has been voted on
DisputeVotedOn {
dispute_key: T::DisputeKey,
who: AccountIdOf<T>,
dispute_key: T::DisputeKey,
vote: bool,
},
/// A dispute has been completed.
Expand Down Expand Up @@ -339,7 +342,7 @@ pub mod pallet {
let expiration_block =
frame_system::Pallet::<T>::block_number().saturating_add(T::VotingTimeLimit::get());
let dispute = Self {
raised_by,
raised_by: raised_by.clone(),
jury,
votes: Default::default(),
specifiers,
Expand All @@ -356,7 +359,10 @@ pub mod pallet {
Ok::<(), DispatchError>(())
})?;

crate::Pallet::<T>::deposit_event(Event::<T>::DisputeRaised { dispute_key });
crate::Pallet::<T>::deposit_event(Event::<T>::DisputeRaised {
who: raised_by,
dispute_key,
});
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/imbue-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker-compose-kusama-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading