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
4849a7b6
Commit
4849a7b6
authored
2 years ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
remove origin from force_add_cert
parent
466c79ff
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!166
refac membership renewal
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pallets/duniter-wot/src/lib.rs
+3
-6
3 additions, 6 deletions
pallets/duniter-wot/src/lib.rs
with
3 additions
and
6 deletions
pallets/duniter-wot/src/lib.rs
+
3
−
6
View file @
4849a7b6
...
@@ -303,12 +303,9 @@ impl<T: Config<I>, I: 'static> pallet_identity::traits::OnIdtyChange<T> for Pall
...
@@ -303,12 +303,9 @@ impl<T: Config<I>, I: 'static> pallet_identity::traits::OnIdtyChange<T> for Pall
fn
on_idty_change
(
idty_index
:
IdtyIndex
,
idty_event
:
&
IdtyEvent
<
T
>
)
->
Weight
{
fn
on_idty_change
(
idty_index
:
IdtyIndex
,
idty_event
:
&
IdtyEvent
<
T
>
)
->
Weight
{
match
idty_event
{
match
idty_event
{
IdtyEvent
::
Created
{
creator
}
=>
{
IdtyEvent
::
Created
{
creator
}
=>
{
if
let
Err
(
e
)
=
<
pallet_certification
::
Pallet
<
T
,
I
>>
::
force_add_cert
(
if
let
Err
(
e
)
=
frame_system
::
Origin
::
<
T
>
::
Root
.into
(),
<
pallet_certification
::
Pallet
<
T
,
I
>>
::
force_add_cert
(
*
creator
,
idty_index
,
true
)
*
creator
,
{
idty_index
,
true
,
)
{
sp_std
::
if_std!
{
sp_std
::
if_std!
{
println!
(
"fail to force add cert: {:?}"
,
e
)
println!
(
"fail to force add cert: {:?}"
,
e
)
}
}
...
...
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