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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
b0a4c0e6
Commit
b0a4c0e6
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
fix provider behavior
parent
17a3916b
No related branches found
No related tags found
1 merge request
!172
Upgrade to Polkadot v0.9.42
Pipeline
#33261
failed
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
end2end-tests/cucumber-features/transfer_all.feature
+6
-6
6 additions, 6 deletions
end2end-tests/cucumber-features/transfer_all.feature
end2end-tests/tests/common/balances.rs
+1
-3
1 addition, 3 deletions
end2end-tests/tests/common/balances.rs
with
7 additions
and
9 deletions
end2end-tests/cucumber-features/transfer_all.feature
+
6
−
6
View file @
b0a4c0e6
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
Feature
:
Balance transfer all
Feature
:
Balance transfer all
Scenario
:
If bob sends all his ĞDs to Dave
Scenario
:
If bob sends all his ĞDs to Dave
When
bob sends all h
er
ĞDs to dave
When
bob sends all h
is
ĞDs to dave
"""
"""
even
Bob is a member, he is allowed to empty his account completely,
Bob is a member,
as such
he is
not
allowed to empty his account completely,
but duniter-account still let him exist
if he tries to do so, the existence deposit (2 ĞD) must remain.
"""
"""
Then
bob should have
0
ĞD
Then
bob should have
2
ĞD
"""
"""
10 ĞD (initial Bob balance) - 0.02 ĞD (transaction fees)
10 ĞD (initial Bob balance) -
2 ĞD (Existential deposit) -
0.02 ĞD (transaction fees)
"""
"""
Then
dave should have
9
98 cĞD
Then
dave should have
7
98 cĞD
This diff is collapsed.
Click to expand it.
end2end-tests/tests/common/balances.rs
+
1
−
3
View file @
b0a4c0e6
...
@@ -80,9 +80,7 @@ pub async fn transfer_all(client: &Client, from: AccountKeyring, to: AccountKeyr
...
@@ -80,9 +80,7 @@ pub async fn transfer_all(client: &Client, from: AccountKeyring, to: AccountKeyr
client
client
.tx
()
.tx
()
.create_signed
(
.create_signed
(
&
gdev
::
tx
()
.balances
()
.transfer_all
(
to
.clone
()
.into
(),
false
),
&
gdev
::
tx
()
.balances
()
.transfer_all
(
to
.into
(),
false
),
// Since 0.9.42, `keep_alive=false` will trigger an error due to providers check
// when there are remaining consumers
&
from
,
&
from
,
BaseExtrinsicParamsBuilder
::
new
(),
BaseExtrinsicParamsBuilder
::
new
(),
)
)
...
...
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