Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
snissn committed Dec 4, 2024
1 parent ab808a2 commit 20aefb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion actors/evm/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ fn transient_storage_test(
let mut solidity_params_test_cleared = vec![];
solidity_params_test_cleared.extend_from_slice(&hex::decode("54e84d1b").unwrap()); // function selector, "testLifecycleValidationSubsequentTransaction()"
//
// We expect this to fail because no changes are made
// We expect this to fail because no changes are made
util::invoke_contract_expect_fail(&rt, &solidity_params_test_cleared);

//use a new address for our calling context
Expand Down
8 changes: 1 addition & 7 deletions actors/evm/tests/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,11 @@ pub fn invoke_contract_expect_fail(rt: &MockRuntime, input_data: &[u8]) {

// Directly use `err.msg()` as it returns `&str`
let msg = err.msg();
assert!(
msg.contains("contract reverted"),
"Unexpected error message: {}",
msg
);
assert!(msg.contains("contract reverted"), "Unexpected error message: {}", msg);
}
}
}



#[allow(dead_code)]
// silly to have the full word for a single byte but...
pub fn dispatch_num_word(method_num: u8) -> [u8; 32] {
Expand Down

0 comments on commit 20aefb5

Please sign in to comment.