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

Commit e95b996

Browse files
committed
removed schema validation, refactored encode_data
1 parent c3f154b commit e95b996

File tree

6 files changed

+52
-339
lines changed

6 files changed

+52
-339
lines changed

Cargo.lock

Lines changed: 0 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

util/EIP-712/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ failure = "0.1"
1515
itertools="0.7"
1616
failure_derive = "0.1"
1717
lazy_static = "1.1"
18-
valico = "2.2"
1918
linked_hash_set = "0.1.3"
2019
toolshed = "0.4"
2120
lunarity = { git = "https://github.com/paritytech/lunarity" }

util/EIP-712/src/eip712.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use ethereum_types::{U256, H256, Address};
2323

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

26-
2726
#[serde(rename_all = "camelCase")]
2827
#[serde(deny_unknown_fields)]
2928
#[derive(Deserialize, Serialize, Debug, Clone)]

util/EIP-712/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ pub enum ErrorKind {
5656
UnsupportedArrayDepth
5757
}
5858

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

6363

0 commit comments

Comments
 (0)