-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: EIP712 verify #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should at least fix those comments for Type
and string representation of it.
502712b
to
035963a
Compare
Signed-off-by: Blue Kirby <blue.kirby@tutanota.com>
035963a
to
3b741e5
Compare
#[test] | ||
fn test_nested_array() { | ||
let source = "bytes1[][][7][][][][][][][][]"; | ||
assert!(parse_type(source).is_err()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be OK?
let source = "byte1[][][7][][][][][][][][]"; | ||
assert!(parse_type(source).is_err()); | ||
let source = "byte[][][7][][][][][][][][]"; | ||
assert!(parse_type(source).is_err()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these tests be somewhere else since these test wrong data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems to be now right. Only problem is that test code looks wrong, but CI pipeline does not fail. Is it not running tests?
Adds implementation to verify EIP712 signature