@@ -188,31 +188,31 @@ module ccip::auth {
188188 let stream = bcs_stream::new (data);
189189
190190 if (function_bytes == b"apply_allowed_onramp_updates ") {
191- let onramps_to_add =
191+ let onramps_to_remove =
192192 bcs_stream::deserialize_vector (
193193 &mut stream,
194194 |stream| bcs_stream::deserialize_address (stream)
195195 );
196- let onramps_to_remove =
196+ let onramps_to_add =
197197 bcs_stream::deserialize_vector (
198198 &mut stream,
199199 |stream| bcs_stream::deserialize_address (stream)
200200 );
201201 bcs_stream::assert_is_consumed (&stream);
202- apply_allowed_onramp_updates (&caller, onramps_to_add, onramps_to_remove )
202+ apply_allowed_onramp_updates (&caller, onramps_to_remove, onramps_to_add )
203203 } else if (function_bytes == b"apply_allowed_offramp_updates ") {
204- let offramps_to_add =
204+ let offramps_to_remove =
205205 bcs_stream::deserialize_vector (
206206 &mut stream,
207207 |stream| bcs_stream::deserialize_address (stream)
208208 );
209- let offramps_to_remove =
209+ let offramps_to_add =
210210 bcs_stream::deserialize_vector (
211211 &mut stream,
212212 |stream| bcs_stream::deserialize_address (stream)
213213 );
214214 bcs_stream::assert_is_consumed (&stream);
215- apply_allowed_offramp_updates (&caller, offramps_to_add, offramps_to_remove )
215+ apply_allowed_offramp_updates (&caller, offramps_to_remove, offramps_to_add )
216216 } else if (function_bytes == b"transfer_ownership ") {
217217 let to = bcs_stream::deserialize_address (&mut stream);
218218 bcs_stream::assert_is_consumed (&stream);
0 commit comments