File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,21 @@ const getFormattedTransactionReceipts = async ({
153153 continue ;
154154 }
155155
156- const functionName = await getFunctionName ( {
157- contract : config . contract ,
158- data : transaction . input ,
159- } ) ;
156+ let functionName : string | undefined ;
157+ try {
158+ functionName = await getFunctionName ( {
159+ contract : config . contract ,
160+ data : transaction . input ,
161+ } ) ;
162+ } catch {
163+ // Unable to parse function. Continue.
164+ }
165+
160166 if (
161167 config . functions . length > 0 &&
162- ! config . functions . includes ( functionName )
168+ ( ! functionName || ! config . functions . includes ( functionName ) )
163169 ) {
164- // This transaction is not for a subscribed function name .
170+ // Function not found, or this transaction is not for a subscribed function.
165171 continue ;
166172 }
167173
You can’t perform that action at this time.
0 commit comments