docs
docs copied to clipboard
fix: Refactor: Remove Redundant Type Assertion in Ethereum Check
I noticed a redundancy in the type assertion within the Ethereum check:
if (!(window as any as any).ethereum) return false;
Using as any as any is unnecessary and doesn't add any value. I've cleaned it up to this:
if (!(window as any).ethereum) return false;
This adjustment simplifies the code while maintaining its functionality.