Skip to content

Commit

Permalink
Implement Tokenize for fixed-size arrays up to 16 elements. (#307)
Browse files Browse the repository at this point in the history
* Implement Tokenize for fixed-size arrays up to 16 elements.

* Fix formatting.
  • Loading branch information
tomusdrw committed Jan 12, 2020
1 parent 897fcfd commit d2a4bc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/contract/tokens.rs
Expand Up @@ -376,7 +376,16 @@ impl_fixed_types!(2);
impl_fixed_types!(3);
impl_fixed_types!(4);
impl_fixed_types!(5);
impl_fixed_types!(6);
impl_fixed_types!(7);
impl_fixed_types!(8);
impl_fixed_types!(9);
impl_fixed_types!(10);
impl_fixed_types!(11);
impl_fixed_types!(12);
impl_fixed_types!(13);
impl_fixed_types!(14);
impl_fixed_types!(15);
impl_fixed_types!(16);
impl_fixed_types!(32);
impl_fixed_types!(64);
Expand Down
6 changes: 2 additions & 4 deletions src/types/trace_filtering.rs
Expand Up @@ -277,8 +277,7 @@ pub enum RewardType {
mod tests {
use super::*;

const EXAMPLE_TRACE_CALL: &'static str =
r#"{
const EXAMPLE_TRACE_CALL: &'static str = r#"{
"action": {
"callType": "call",
"from": "0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb",
Expand All @@ -300,8 +299,7 @@ mod tests {
"type": "call"
}"#;

const EXAMPLE_TRACE_CREATE: &'static str =
r#"{
const EXAMPLE_TRACE_CREATE: &'static str = r#"{
"action": {
"from": "0xd1220a0cf47c7b9be7a2e6ba89f429762e7b9adb",
"gas": "0x63ab9",
Expand Down

0 comments on commit d2a4bc0

Please sign in to comment.