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
Merge requests
!59
Fix
#46
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix
#46
elois-fix-46
into
release/runtime-100
Overview
1
Commits
3
Pipelines
0
Changes
3
Merged
Éloïs
requested to merge
elois-fix-46
into
release/runtime-100
2 years ago
Overview
1
Commits
3
Pipelines
0
Changes
3
Expand
Closes
#46 (closed)
0
0
Merge request reports
Compare
release/runtime-100
version 2
08ac5ccc
2 years ago
version 1
b1f11a95
2 years ago
release/runtime-100 (base)
and
latest version
latest version
b93852d2
3 commits,
2 years ago
version 2
08ac5ccc
2 commits,
2 years ago
version 1
b1f11a95
2 commits,
2 years ago
3 files
+
10
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
pallets/duniter-account/src/lib.rs
+
1
−
1
Options
@@ -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
Loading