Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
removed schema validation, refactored encode_data
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Oct 1, 2018
1 parent c3f154b commit e95b996
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 339 deletions.
113 changes: 0 additions & 113 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion util/EIP-712/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ failure = "0.1"
itertools="0.7"
failure_derive = "0.1"
lazy_static = "1.1"
valico = "2.2"
linked_hash_set = "0.1.3"
toolshed = "0.4"
lunarity = { git = "https://github.com/paritytech/lunarity" }
Expand Down
1 change: 0 additions & 1 deletion util/EIP-712/src/eip712.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use ethereum_types::{U256, H256, Address};

pub(crate) type MessageTypes = HashMap<String, Vec<FieldType>>;


#[serde(rename_all = "camelCase")]
#[serde(deny_unknown_fields)]
#[derive(Deserialize, Serialize, Debug, Clone)]
Expand Down
4 changes: 2 additions & 2 deletions util/EIP-712/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ pub enum ErrorKind {
UnsupportedArrayDepth
}

pub(crate) fn serde_error(expected: &str, field: &str) -> ErrorKind {
ErrorKind::UnexpectedType(expected.to_owned(), field.to_owned())
pub(crate) fn serde_error(expected: &str, field: Option<&str>) -> ErrorKind {
ErrorKind::UnexpectedType(expected.to_owned(), field.unwrap_or("").to_owned())
}


Expand Down
Loading

0 comments on commit e95b996

Please sign in to comment.