Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nodes
rust
Duniter v2S
Commits
62f8a478
Unverified
Commit
62f8a478
authored
2 years ago
by
bgallois
Browse files
Options
Downloads
Patches
Plain Diff
fix pallet-balance errors
parent
da06c5f7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pallets/oneshot-account/src/mock.rs
+5
-1
5 additions, 1 deletion
pallets/oneshot-account/src/mock.rs
pallets/universal-dividend/src/mock.rs
+5
-1
5 additions, 1 deletion
pallets/universal-dividend/src/mock.rs
with
10 additions
and
2 deletions
pallets/oneshot-account/src/mock.rs
+
5
−
1
View file @
62f8a478
...
...
@@ -18,7 +18,7 @@ use crate::{self as pallet_oneshot_account};
use
frame_support
::{
parameter_types
,
traits
::
Everything
,
weights
::
IdentityFee
};
use
frame_system
as
system
;
use
pallet_transaction_payment
::
CurrencyAdapter
;
use
sp_core
::
H256
;
use
sp_core
::
{
ConstU32
,
H256
}
;
use
sp_runtime
::{
testing
::
Header
,
traits
::{
BlakeTwo256
,
IdentityLookup
},
...
...
@@ -91,6 +91,10 @@ impl pallet_balances::Config for Test {
type
MaxReserves
=
();
type
ReserveIdentifier
=
[
u8
;
8
];
type
RuntimeEvent
=
RuntimeEvent
;
type
HoldIdentifier
=
();
type
FreezeIdentifier
=
();
type
MaxHolds
=
ConstU32
<
0
>
;
type
MaxFreezes
=
ConstU32
<
0
>
;
}
impl
pallet_transaction_payment
::
Config
for
Test
{
type
RuntimeEvent
=
RuntimeEvent
;
...
...
This diff is collapsed.
Click to expand it.
pallets/universal-dividend/src/mock.rs
+
5
−
1
View file @
62f8a478
...
...
@@ -21,7 +21,7 @@ use frame_support::{
traits
::{
Everything
,
OnFinalize
,
OnInitialize
},
};
use
frame_system
as
system
;
use
sp_core
::
H256
;
use
sp_core
::
{
ConstU32
,
H256
}
;
use
sp_runtime
::{
testing
::
Header
,
traits
::{
BlakeTwo256
,
IdentityLookup
},
...
...
@@ -93,6 +93,10 @@ impl pallet_balances::Config for Test {
type
MaxReserves
=
();
type
ReserveIdentifier
=
[
u8
;
8
];
type
RuntimeEvent
=
RuntimeEvent
;
type
HoldIdentifier
=
();
type
FreezeIdentifier
=
();
type
MaxHolds
=
ConstU32
<
0
>
;
type
MaxFreezes
=
ConstU32
<
0
>
;
}
parameter_types!
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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