Open BrettCleary opened 1 year ago
Hi @BrettCleary ! Is this still relevant? We've made significant improvements to the SDK even though the suggestion you gave hasn't been addressed yet. Please do let us know so that we can include these changes in an upcoming release.
In HyperPlay, which is an electron app, we import metamask sdk (v0.12.0) in the main (node.js) process. This imports the following from
node_modules\@metamask\sdk\dist\node\es\src\index.d.ts
This type modifies the global type which conflicts with the frontend definition for window.ethereum of
I don't see the purpose of modifying the global window.etheruem object for nodejs projects since the provider will be obtained by following the steps defined here https://docs.metamask.io/wallet/how-to/connect/set-up-sdk/javascript/nodejs/ and the sdk object will be called directly.
Would it be possible to remove the following from
node_modules\@metamask\sdk\dist\node\es\src\index.d.ts
?