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 ({
153
153
continue ;
154
154
}
155
155
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
+
160
166
if (
161
167
config . functions . length > 0 &&
162
- ! config . functions . includes ( functionName )
168
+ ( ! functionName || ! config . functions . includes ( functionName ) )
163
169
) {
164
- // This transaction is not for a subscribed function name .
170
+ // Function not found, or this transaction is not for a subscribed function.
165
171
continue ;
166
172
}
167
173
You can’t perform that action at this time.
0 commit comments