Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eip1193Provider is not consistent with the standard #4793

Open
xd-shadow opened this issue Jul 26, 2024 · 0 comments
Open

Eip1193Provider is not consistent with the standard #4793

xd-shadow opened this issue Jul 26, 2024 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@xd-shadow
Copy link

Ethers Version

6.13.2

Search Terms

Eip1193Provider

Describe the Problem

According to the EIPs standard (https://eips.ethereum.org/EIPS/eip-1193), Eip1193Provider should include the on and removeListener events. When using TypeScript, this will cause a type error.

Code Snippet

export interface Eip1193Provider {
    /**
     *  See [[link-eip-1193]] for details on this method.
     */
    request(request: { method: string, params?: Array<any> | Record<string, any> }): Promise<any>;
};

Contract ABI

No response

Errors

No response

Environment

Other (please specify)

Environment (Other)

Vue3

@xd-shadow xd-shadow added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

2 participants