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
08ac5ccc
Commit
08ac5ccc
authored
2 years ago
by
Éloïs
Committed by
Éloïs
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(runtime): fix
#46
parent
cb7fd382
No related branches found
No related tags found
1 merge request
!59
Fix #46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pallets/duniter-account/src/lib.rs
+1
-1
1 addition, 1 deletion
pallets/duniter-account/src/lib.rs
with
1 addition
and
1 deletion
pallets/duniter-account/src/lib.rs
+
1
−
1
View file @
08ac5ccc
...
...
@@ -162,7 +162,7 @@ pub mod pallet {
// If the account is not self-sufficient, it must pay the account creation fees
let
account_data
=
frame_system
::
Pallet
::
<
T
>
::
get
(
&
account_id
);
let
price
=
T
::
NewAccountPrice
::
get
();
if
account_data
.free
>
price
{
if
account_data
.free
>
=
T
::
ExistentialDeposit
::
get
()
+
price
{
// The account can pay the new account price, we should:
// 1. Increment providers to create the account for frame_system point of view
// 2. Withdraw the "new account price" amount
...
...
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