This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 683
Ganache's provider type is not compatible with Web3 #2125
Comments
Blocked until this web3 PR is merged. web3/web3.js#4743 |
@MicaiahReid As it is merged already, is there any update? |
@koraykoska You can try the new web3 release candidate that contains their fix now: https://github.com/ChainSafe/web3.js/releases/tag/v1.7.2-rc.0 |
@davidmurdoch I am not using web3.js. It's a dependency of ganache and I only use ganache with ethers. |
Web3 is most certainly not a dependency of Ganache. 😁 Are you suggesting ethers doesn't like the Ganache provider type? |
Yes, so at least Typescript can’t compile properly.
…On Fri, 8 Apr 2022 at 00:10, David Murdoch ***@***.***> wrote:
Web3 is most certainly not a dependency of Ganache. 😁
Are you suggesting ethers doesn't like the Ganache provider type?
—
Reply to this email directly, view it on GitHub
<#2125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWUTTIVDO3CTBHJ4G3UEDLVD5TMZANCNFSM5MOBCV4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What is the error? |
Pretty much what is described here:
https://githubhot.com/repo/trufflesuite/ganache-core/issues/2134
I get exactly the same errors and the last working version is 7.0.0-beta.1
…On Fri, 8 Apr 2022 at 00:27, David Murdoch ***@***.***> wrote:
What is the error?
—
Reply to this email directly, view it on GitHub
<#2125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACWUTTNH66KGQ7BPYQ5SYK3VD5VMHANCNFSM5MOBCV4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Does adding |
I've confirmed that types from Ganache v7.0.2 and above are compatible with web3 v1.7.3. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
it's a matter of
(payload: JsonRpcRequest<...>, callback?: Callback | undefined)
(the relevant part of the type on Ganache)
vs
(payload: JsonRPCRequest, callback: Callback<JsonRPCResponse>)
Full error:
The text was updated successfully, but these errors were encountered: