File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ pub fn resolve_error_signature(signature: &String) -> Option<Vec<ResolvedError>>
140140pub fn resolve_event_signature ( signature : & String ) -> Option < Vec < ResolvedLog > > {
141141
142142 // get function possibilities from 4byte
143- let signatures = match get_json_from_url ( format ! ( "https://sig.eth.samczsun.com/api/v1/signatures?all=true&function =0x{}" , & signature) , 3 ) {
143+ let signatures = match get_json_from_url ( format ! ( "https://sig.eth.samczsun.com/api/v1/signatures?all=true&event =0x{}" , & signature) , 3 ) {
144144 Some ( signatures) => signatures,
145145 None => return None
146146 } ;
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ pub fn decompile(args: DecompilerArgs) {
502502 resolved_counter = 0 ;
503503 for ( event_selector, ( _, raw_event) ) in analyzed_function. events . clone ( ) {
504504 decompilation_progress. set_message ( format ! ( "resolving event '0x{}'" , & event_selector. get( 0 ..8 ) . unwrap( ) . to_string( ) ) ) ;
505- let resolved_event_selectors = resolve_event_signature ( & event_selector. get ( 0 .. 8 ) . unwrap ( ) . to_string ( ) ) ;
505+ let resolved_event_selectors = resolve_event_signature ( & event_selector) ;
506506
507507 // only continue if we have matches
508508 match resolved_event_selectors {
You can’t perform that action at this time.
0 commit comments