matter-labs / zksync-v2-issues

Report issues encountered when using the zkSync 2.0 testnet.
10 stars 6 forks source link

Getting the error `RangeError: Maximum call stack size exceeded` when calling the `Provider` class #5

Closed adrianwsw closed 1 year ago

adrianwsw commented 1 year ago

Been getting the RangeError:Maximum call stack size exceeded from time to time, which points to some kind of recursion in the constructor of Provider class. May I know if this is a bug not being reported yet or I have done sth wrong in initiating the Provider class?

Screenshot 2022-09-19 at 11 05 59 AM

Line 16-20 of build/provider.js: this.formatter.blockTag = (tag) => { if (tag == 'committed' || tag == 'finalized') { return tag; } return blockTag(tag); };

bxpana commented 1 year ago

@adrianwsw thanks for submitting. Can we get some more details for this issue? Can you share the minimal reproducible code, the contents of your package.json, and steps to reproduce? Then we can investigate and see what might be causing this issue.