Content
@
https://warpcast.com/~/channel/unblock-crypto
0 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
The way web3 frontends originally interacted with the MetaMask browser extension was by looking for a global JavaScript variable at `window.ethereum` or `window.web3.currentProvider` that adheres to the EIP-1193 standard. As more wallet browser extensions and âin-app browsersâ hit the market, they copied this convention and even set the `isMetaMask` flag to `true` so that existing frontends with MetaMask buttons could find them. Hence the conflict and confusion that continues to this day đŠâïžđ„ž The solution is to adopt EIP-6963 which uses JavaScript events instead of global variables to introduce EIP-1193 objects to the frontend. In other words â @opensea, get your act together and support EIP-6963 already!!
5 replies
1 recast
25 reactions
greg
@gregfromstl
You should make a course on web3 frontend development
1 reply
0 recast
2 reactions
Darryl Yeo đ ïž
@darrylyeo
Maybe someday! First I want to teach myself everything from first principles so I'm not just regurgitating library abstractions and React templates that most people in this industry are using. Rebuilding @blockhead from the ground up with Svelte + TypeScript will be my path to accomplishing this.
0 reply
0 recast
3 reactions