Closed alagiesellu closed 1 year ago
Hey there, they are not exactly removed but they are now used differently as they can be initiated from dapp. You can see examples in our tests:
`const addNetworkRequest = window.ethereum.request
ReferenceError: window is not defined`
This is the error am getting now.
`const addNetworkRequest = window.ethereum.request({ ^
ReferenceError: window is not defined`
This is the error am getting now.
You need to evaluate that code in context of your dapp page: https://github.com/ChainSafe/dappeteer/blob/master/test/basic.spec.ts#L120
In the previous versions, my project depends on the addNetwork and addToken functions.
Pls, return the features.