Skip to content

Commit be262cc

Browse files
committed
Fix tests
1 parent 8dd3906 commit be262cc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

actors/multisig/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use fvm_shared::clock::ChainEpoch;
1313
use fvm_shared::econ::TokenAmount;
1414
use fvm_shared::error::ExitCode;
1515
use indexmap::IndexMap;
16-
use num_traits::{Signed, Zero};
16+
use num_traits::Zero;
1717

1818
use super::types::Transaction;
1919
use super::TxnID;

actors/multisig/tests/multisig_actor_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ mod constructor_tests {
227227
);
228228
rt.set_caller(*INIT_ACTOR_CODE_ID, *INIT_ACTOR_ADDR);
229229
expect_abort(
230-
ExitCode::USR_ILLEGAL_STATE,
230+
ExitCode::USR_ILLEGAL_ARGUMENT,
231231
rt.call::<MultisigActor>(
232232
Method::Constructor as u64,
233233
&RawBytes::serialize(&params).unwrap(),

actors/paych/tests/paych_actor_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ mod paych_constructor {
230230
&mut rt,
231231
METHOD_CONSTRUCTOR,
232232
&RawBytes::serialize(&params).unwrap(),
233-
ExitCode::USR_ILLEGAL_STATE,
233+
ExitCode::USR_ILLEGAL_ARGUMENT,
234234
);
235235
}
236236

@@ -267,7 +267,7 @@ mod paych_constructor {
267267
&mut rt,
268268
METHOD_CONSTRUCTOR,
269269
&RawBytes::serialize(&params).unwrap(),
270-
ExitCode::USR_ILLEGAL_STATE,
270+
ExitCode::USR_ILLEGAL_ARGUMENT,
271271
);
272272
}
273273
}

actors/verifreg/tests/verifreg_actor_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ mod verifiers {
150150
ExitCode::OK,
151151
);
152152
expect_abort(
153-
ExitCode::USR_ILLEGAL_STATE,
153+
ExitCode::USR_ILLEGAL_ARGUMENT,
154154
h.add_verifier(&mut rt, &verifier_key_address, &allowance),
155155
);
156156
h.check_state(&rt);
@@ -335,7 +335,7 @@ mod clients {
335335
);
336336

337337
expect_abort(
338-
ExitCode::USR_ILLEGAL_STATE,
338+
ExitCode::USR_ILLEGAL_ARGUMENT,
339339
h.add_client(&mut rt, &VERIFIER, &client, &allowance_client, &allowance_client),
340340
);
341341
h.check_state(&rt);

0 commit comments

Comments
 (0)