Skip to content
Snippets Groups Projects
Commit b0a4c0e6 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix provider behavior

parent 17a3916b
No related branches found
No related tags found
1 merge request!172Upgrade to Polkadot v0.9.42
Pipeline #33261 failed
...@@ -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 her ĞDs to dave When bob sends all his Ğ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 998 cĞD Then dave should have 798 cĞD
...@@ -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(),
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment