File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ pub async fn factory_contract_set_up_correctly() -> Result<()> {
102
102
let FactoryTestSetup {
103
103
wealthy_connection,
104
104
regular_account,
105
- zero_account,
105
+ zero_account : _zero_account ,
106
106
factory_contract,
107
107
..
108
108
} = set_up_factory_test ( ) . await ?;
@@ -115,7 +115,7 @@ pub async fn factory_contract_set_up_correctly() -> Result<()> {
115
115
. read ( factory_contract. all_pairs_length ( ) )
116
116
. await ??;
117
117
118
- assert ! ( recipient == zero_account ) ;
118
+ assert ! ( recipient. is_none ( ) ) ;
119
119
assert ! ( setter == regular_account) ;
120
120
assert ! ( all_pairs_length == 0 ) ;
121
121
@@ -137,7 +137,7 @@ pub async fn set_fee() -> Result<()> {
137
137
138
138
let fee_recipient = wealthy_connection. read ( factory_contract. fee_to ( ) ) . await ??;
139
139
140
- assert ! ( fee_recipient == zero_account ) ;
140
+ assert ! ( fee_recipient. is_none ( ) ) ;
141
141
142
142
ensure ! (
143
143
wealthy_connection
@@ -156,7 +156,7 @@ pub async fn set_fee() -> Result<()> {
156
156
157
157
let regular_recipient = regular_connection. read ( factory_contract. fee_to ( ) ) . await ??;
158
158
159
- assert ! ( regular_recipient == regular_account) ;
159
+ assert ! ( regular_recipient == Some ( regular_account) ) ;
160
160
161
161
Ok ( ( ) )
162
162
}
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ pub async fn swap_tokens() -> Result<()> {
297
297
assert ! ( regular_balance_before == EXPECTED_INITIAL_REGULAR_BALANCE ) ;
298
298
299
299
let swap_tx_info = wealthy_connection
300
- . exec ( pair_contract. swap ( FIRST_AMOUNT_OUT , SECOND_AMOUNT_OUT , regular_account) )
300
+ . exec ( pair_contract. swap ( FIRST_AMOUNT_OUT , SECOND_AMOUNT_OUT , regular_account, None ) )
301
301
. await ?;
302
302
303
303
let all_pair_contract_events = wealthy_connection. get_contract_events ( swap_tx_info) . await ?;
@@ -359,7 +359,7 @@ pub async fn burn_liquidity_provider_token() -> Result<()> {
359
359
. exec ( first_token. transfer ( pair, FIRST_AMOUNT_IN , vec ! [ ] ) )
360
360
. await ?;
361
361
wealthy_connection
362
- . exec ( pair_contract. swap ( FIRST_AMOUNT_OUT , SECOND_AMOUNT_OUT , regular_account) )
362
+ . exec ( pair_contract. swap ( FIRST_AMOUNT_OUT , SECOND_AMOUNT_OUT , regular_account, None ) )
363
363
. await ?;
364
364
365
365
let first_token_balance_before = wealthy_connection
You can’t perform that action at this time.
0 commit comments