Skip to content

Commit d31a02e

Browse files
authored
Fix argument order in auth::mcms_entrypoint (#132)
1 parent 29f3af2 commit d31a02e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

contracts/ccip/ccip/sources/auth.move

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)