updated ethabi to version 4.0 (#6742)
* updated ethabi to version 4.0 * ethabi 4.0.1
This commit is contained in:
committed by
Arkadiy Paronyan
parent
9fa639ede9
commit
8365f4d80e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user