Open atuchin-m opened 6 months ago
So basically this is how it should work:
For users without a wallet created:
Onboarding process should be launched for EIP 6963 capable dapps.
window.ethereum
and window.braveEthereum
should not exist until eip6963:requestProvider
For users with a wallet created: window.ethereum, window.braveEthereum should always be created. Same as now.
Since there is no Solana issue for that, merged the info into this.
For users without a wallet created:
Onboarding process should be launched for wallet-standard
capable dapps.
window.solana
and window.braveSolana
should not exist until wallet-standard:app-ready
For users with a wallet created:
window.solana
, window.braveSolana
should always be created. Same as now.
@cypt4 @darkdh My idea was to make those javascript injection on demand even for Wallet users. JS concept is here: https://davidwalsh.name/lazy-object-initialization We could:
window.braveSolana
can't see any difference.
Currently we always inject
braveEthereum
. We should inject only when user have a wallet initialized.brave_etherium_inject.txt