@@ -206,7 +206,6 @@ pub fn handle_increase_channel_balance_ibc_receive(
206
206
& dst_channel_id,
207
207
& ibc_denom,
208
208
remote_amount. clone ( ) ,
209
- false ,
210
209
) ?;
211
210
// we need to save the data to update the balances in reply
212
211
let reply_args = ReplyArgs {
@@ -236,14 +235,8 @@ pub fn handle_reduce_channel_balance_ibc_receive(
236
235
) -> Result < Response , ContractError > {
237
236
is_caller_contract ( caller, contract_addr) ?;
238
237
// because we are transferring back, we reduce the channel's balance
239
- reduce_channel_balance (
240
- storage,
241
- src_channel_id. as_str ( ) ,
242
- & ibc_denom,
243
- remote_amount,
244
- false ,
245
- )
246
- . map_err ( |err| StdError :: generic_err ( err. to_string ( ) ) ) ?;
238
+ reduce_channel_balance ( storage, src_channel_id. as_str ( ) , & ibc_denom, remote_amount)
239
+ . map_err ( |err| StdError :: generic_err ( err. to_string ( ) ) ) ?;
247
240
248
241
// keep track of the single-step reply since we need ibc data to undo reducing channel balance and local data for refunding.
249
242
// we use a different item to not override REPLY_ARGS
@@ -505,7 +498,6 @@ pub fn execute_transfer_back_to_remote_chain(
505
498
& msg. local_channel_id ,
506
499
& ibc_denom,
507
500
amount_remote,
508
- false ,
509
501
) ?;
510
502
511
503
// prepare ibc message
@@ -673,7 +665,7 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
673
665
match msg {
674
666
QueryMsg :: Port { } => to_binary ( & query_port ( deps) ?) ,
675
667
QueryMsg :: ListChannels { } => to_binary ( & query_list ( deps) ?) ,
676
- QueryMsg :: Channel { id, forward } => to_binary ( & query_channel ( deps, id) ?) ,
668
+ QueryMsg :: Channel { id } => to_binary ( & query_channel ( deps, id) ?) ,
677
669
QueryMsg :: ChannelWithKey { channel_id, denom } => {
678
670
to_binary ( & query_channel_with_key ( deps, channel_id, denom) ?)
679
671
}
@@ -949,7 +941,6 @@ mod test {
949
941
mock_env ( ) ,
950
942
QueryMsg :: Channel {
951
943
id : "channel-3" . to_string ( ) ,
952
- forward : Some ( true ) ,
953
944
} ,
954
945
)
955
946
. unwrap ( ) ;
@@ -963,7 +954,6 @@ mod test {
963
954
mock_env ( ) ,
964
955
QueryMsg :: Channel {
965
956
id : "channel-10" . to_string ( ) ,
966
- forward : Some ( true ) ,
967
957
} ,
968
958
)
969
959
. unwrap_err ( ) ;
@@ -2027,13 +2017,12 @@ mod test {
2027
2017
let amount = Uint128 :: from ( 10u128 ) ;
2028
2018
let reduce_amount = Uint128 :: from ( 1u128 ) ;
2029
2019
let mut deps = setup ( & [ channel] , & [ ] ) ;
2030
- increase_channel_balance ( deps. as_mut ( ) . storage , channel, ibc_denom, amount, false ) . unwrap ( ) ;
2020
+ increase_channel_balance ( deps. as_mut ( ) . storage , channel, ibc_denom, amount) . unwrap ( ) ;
2031
2021
reduce_channel_balance (
2032
2022
deps. as_mut ( ) . storage ,
2033
2023
channel,
2034
2024
ibc_denom,
2035
2025
Uint128 :: from ( 1u128 ) ,
2036
- false ,
2037
2026
)
2038
2027
. unwrap ( ) ;
2039
2028
@@ -2062,7 +2051,7 @@ mod test {
2062
2051
let override_amount = Uint128 :: from ( 100u128 ) ;
2063
2052
let total_sent_override = Uint128 :: from ( 1000u128 ) ;
2064
2053
let mut deps = setup ( & [ channel] , & [ ] ) ;
2065
- increase_channel_balance ( deps. as_mut ( ) . storage , channel, ibc_denom, amount, false ) . unwrap ( ) ;
2054
+ increase_channel_balance ( deps. as_mut ( ) . storage , channel, ibc_denom, amount) . unwrap ( ) ;
2066
2055
2067
2056
// unauthorized case
2068
2057
let unauthorized = handle_override_channel_balance (
0 commit comments