@@ -3888,6 +3888,8 @@ fn sign_decommission_pool_request_between_accounts(#[case] seed: Seed) {
3888
3888
1 ,
3889
3889
) ;
3890
3890
3891
+ assert_eq ! ( get_coin_balance( & wallet) , Amount :: ZERO ) ;
3892
+
3891
3893
let pool_ids = wallet. get_pool_ids ( acc_0_index, WalletPoolsFilter :: All ) . unwrap ( ) ;
3892
3894
assert_eq ! ( pool_ids. len( ) , 1 ) ;
3893
3895
@@ -3921,20 +3923,11 @@ fn sign_decommission_pool_request_between_accounts(#[case] seed: Seed) {
3921
3923
. into_signed_tx ( )
3922
3924
. unwrap ( ) ;
3923
3925
3924
- let _ = create_block ( & chain_config, & mut wallet, vec ! [ signed_tx] , Amount :: ZERO , 1 ) ;
3926
+ let _ = create_block ( & chain_config, & mut wallet, vec ! [ signed_tx] , Amount :: ZERO , 2 ) ;
3925
3927
3926
- let currency_balances = wallet
3927
- . get_balance (
3928
- acc_1_index,
3929
- UtxoType :: Transfer | UtxoType :: LockThenTransfer | UtxoType :: CreateStakePool ,
3930
- UtxoState :: Confirmed . into ( ) ,
3931
- WithLocked :: Unlocked ,
3932
- )
3933
- . unwrap ( ) ;
3934
- assert_eq ! (
3935
- currency_balances. get( & Currency :: Coin ) . copied( ) . unwrap_or( Amount :: ZERO ) ,
3936
- pool_amount,
3937
- ) ;
3928
+ // the pool amount is back after decommission
3929
+ assert_eq ! ( get_coin_balance( & wallet) , pool_amount) ;
3930
+ assert_eq ! ( get_coin_balance_for_acc( & wallet, acc_1_index) , Amount :: ZERO ) ;
3938
3931
}
3939
3932
3940
3933
#[ rstest]
@@ -4020,7 +4013,7 @@ fn sign_decommission_pool_request_cold_wallet(#[case] seed: Seed) {
4020
4013
& mut hot_wallet,
4021
4014
vec ! [ signed_tx] ,
4022
4015
Amount :: ZERO ,
4023
- 1 ,
4016
+ 2 ,
4024
4017
) ;
4025
4018
4026
4019
let currency_balances = hot_wallet
0 commit comments