File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,18 @@ async function subscribeToEvent(
206
206
type: 'event',
207
207
signature: '0x881cc8af0159324ccea314ad98a0cf26fe0e460c2afa693c92f591613d4de7b2' }
208
208
*/
209
- const eventJsonInterface = web3 . utils . _ . find (
210
- contractInstance . _jsonInterface , // eslint-disable-line no-underscore-dangle
211
- o => o . name === eventName && o . type === 'event' ,
212
- ) ;
213
209
214
- logger . silly ( `eventJsonInterface: ${ JSON . stringify ( eventJsonInterface , null , 2 ) } ` ) ;
210
+
211
+ // changed below for sepolia ws url - NOT TESTED ON ANY OTHER BLOCKCHAIN
212
+
213
+ // const eventJsonInterface = web3.utils._.find(
214
+ // contractInstance._jsonInterface, // eslint-disable-line no-underscore-dangle
215
+ // o => o.name === eventName && o.type === 'event',
216
+ // );
217
+
218
+ const eventJsonInterface = contractInstance . _jsonInterface . find ( o => o . name === eventName && o . type === 'event' ) ;
219
+
220
+ logger . info ( `eventJsonInterface: ${ JSON . stringify ( eventJsonInterface , null , 2 ) } ` ) ;
215
221
216
222
const eventSubscription = await contractInstance . events [ eventName ] ( {
217
223
fromBlock,
You can’t perform that action at this time.
0 commit comments