ethabi 2.0.1

Easy to use conversion of ethereum contract calls to bytecode.
Documentation
//! ABI error variants.

use std::string::FromUtf8Error;

/// ABI error variants.
#[derive(Debug)]
pub enum Error {
	/// Returned when encoded / decoded data does not match params.
	InvalidData,
	/// Returned when there is a problem with decoding utf8 string.
	Utf8(FromUtf8Error),
	/// Returned when constructor, function or event does not exists.
	InvalidName,
}

impl From<FromUtf8Error> for Error {
	fn from(err: FromUtf8Error) -> Self {
		Error::Utf8(err)
	}
}