Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MexicanAce committed Dec 13, 2023
1 parent 663f228 commit 79f2e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/node/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ mod tests {
testing::deploy_contract(
&node,
H256::repeat_byte(0x1),
private_key.clone(),
private_key,
hex::decode(testing::STORAGE_CONTRACT_BYTECODE).unwrap(),
None,
Nonce(0),
Expand Down
5 changes: 2 additions & 3 deletions src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ pub fn default_tx_debug_info() -> DebugCall {

/// Decodes a `bytes` tx result to its concrete parameter type.
pub fn decode_tx_result(output: &[u8], param_type: ParamType) -> Token {
let result = ethabi::decode(&vec![ParamType::Bytes], &output).expect("failed decoding output");
let result = ethabi::decode(&[ParamType::Bytes], output).expect("failed decoding output");
if result.is_empty() {
panic!("result was empty");
}
Expand All @@ -665,8 +665,7 @@ pub fn decode_tx_result(output: &[u8], param_type: ParamType) -> Token {
.clone()
.into_bytes()
.expect("failed converting result to bytes");
let result =
ethabi::decode(&vec![param_type], &result_bytes).expect("failed converting output");
let result = ethabi::decode(&[param_type], &result_bytes).expect("failed converting output");
if result.is_empty() {
panic!("decoded result was empty");
}
Expand Down

0 comments on commit 79f2e22

Please sign in to comment.