Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
3d74b9b6
Commit
3d74b9b6
authored
5 years ago
by
Bastian Köcher
Committed by
Gavin Wood
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix pallet-society on master (#4588)
parent
c81e9df1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/society/src/mock.rs
+8
-4
8 additions, 4 deletions
substrate/frame/society/src/mock.rs
with
8 additions
and
4 deletions
substrate/frame/society/src/mock.rs
+
8
−
4
View file @
3d74b9b6
...
...
@@ -18,7 +18,7 @@
use
super
::
*
;
use
frame_support
::{
impl_outer_origin
,
parameter_types
};
use
frame_support
::{
impl_outer_origin
,
parameter_types
,
ord_
parameter_types
};
use
sp_core
::
H256
;
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are requried.
...
...
@@ -43,8 +43,6 @@ parameter_types! {
pub
const
RotationPeriod
:
u64
=
4
;
pub
const
PeriodSpend
:
u64
=
1000
;
pub
const
MaxLockDuration
:
u64
=
100
;
pub
const
FounderSetAccount
:
u64
=
1
;
pub
const
SuspensionJudgementSetAccount
:
u64
=
2
;
pub
const
ChallengePeriod
:
u64
=
8
;
pub
const
MaxMembers
:
u32
=
100
;
...
...
@@ -58,6 +56,11 @@ parameter_types! {
pub
const
CreationFee
:
u64
=
0
;
}
ord_parameter_types!
{
pub
const
FounderSetAccount
:
u128
=
1
;
pub
const
SuspensionJudgementSetAccount
:
u128
=
2
;
}
impl
frame_system
::
Trait
for
Test
{
type
Origin
=
Origin
;
type
Index
=
u64
;
...
...
@@ -87,6 +90,7 @@ impl pallet_balances::Trait for Test {
type
ExistentialDeposit
=
ExistentialDeposit
;
type
TransferFee
=
TransferFee
;
type
CreationFee
=
CreationFee
;
type
OnReapAccount
=
System
;
}
impl
Trait
for
Test
{
...
...
@@ -201,4 +205,4 @@ pub fn create_bid<AccountId, Balance>(
kind
,
value
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment