Skip to content

Commit

Permalink
Obey stable rustfmt (yikes!)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Jan 16, 2020
1 parent cec8446 commit 97186ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cli/src/main.rs
Expand Up @@ -377,8 +377,8 @@ mod tests {
fn overloaded_function_encode_by_second_signature() {
let command = "ethabi encode function ../res/test.abi bar(string):(uint256) -p 1".split(" ");
let expected = "d473a8ed0000000000000000000000000000000000000000000000000000000000000020\
000000000000000000000000000000000000000000000000000000000000000131000000\
00000000000000000000000000000000000000000000000000000000";
000000000000000000000000000000000000000000000000000000000000000131000000\
00000000000000000000000000000000000000000000000000000000";
assert_eq!(execute(command).unwrap(), expected);
}

Expand Down
6 changes: 3 additions & 3 deletions ethabi/src/decoder.rs
Expand Up @@ -46,9 +46,9 @@ pub fn decode(types: &[ParamType], data: &[u8]) -> Result<Vec<Token>, Error> {
if !is_empty_bytes_valid_encoding && data.is_empty() {
return Err(Error::InvalidName(
"please ensure the contract and method you're calling exist! \
failed to decode empty bytes. if you're using jsonrpc this is \
likely due to jsonrpc returning `0x` in case contract or method \
don't exist"
failed to decode empty bytes. if you're using jsonrpc this is \
likely due to jsonrpc returning `0x` in case contract or method \
don't exist"
.into(),
));
}
Expand Down

0 comments on commit 97186ff

Please sign in to comment.