updated ethabi to version 4.0 (#6742)

* updated ethabi to version 4.0

* ethabi 4.0.1
This commit is contained in:
Marek Kotewicz
2017-10-16 10:21:35 +02:00
committed by Arkadiy Paronyan
parent 9fa639ede9
commit 8365f4d80e
11 changed files with 90 additions and 97 deletions

View File

@@ -276,7 +276,7 @@ impl ValidatorSafeContract {
.filter(move |l| check_log(l))
.filter_map(|log| {
let topics = log.topics.iter().map(|x| x.0.clone()).collect();
event.decode_log(topics, log.data.clone()).ok()
event.parse_log((topics, log.data.clone()).into()).ok()
});
match decoded_events.next() {
@@ -285,7 +285,7 @@ impl ValidatorSafeContract {
// decode log manually until the native contract generator is
// good enough to do it for us.
let validators_token = &matched_event[1].value;
let validators_token = &matched_event.params[1].value;
let validators = validators_token.clone().to_array()
.and_then(|a| a.into_iter()