clbrge / svelte-web3

web3.js library integration as a Svelte store
MIT License
138 stars 32 forks source link

Deprecated event listener #36

Closed antonio-fr closed 2 years ago

antonio-fr commented 2 years ago

Running svelte-web3 with Metamask, the latter informs that the "close" may be removed in any future version.

MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect

 _warnOfDeprecation @ inpage.js:1
on @ inpage.js:1
u.setProvider @ web3.js:15
e @ web3.js:15
packageInit @ web3.js:3
d @ web3.js:15
set1193Provider @ stores.js:107
await in set1193Provider (async)  
setProvider @ stores.js:130
clbrge commented 2 years ago

I don't think the error surface from svelte-web3 itself. Which version are you using and which provider are you passing in setProvider ?

antonio-fr commented 2 years ago

Yes, after more analysis, this is the latest web.js module v1.7.0, which has this deprecated method. I'm closing this and will eventually open at the web3js repository.