-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error data
property is overwritten between provider and hardhat-web3 adapter
#1910
Labels
Comments
The issue been identified during discussion of web3/web3.js#3742 |
data
property is lost between provider and adapter data
property is overwritten between provider and adapter
Possibly related to #1882 (not sure). |
1 task
This issue was marked as stale because it didn't have any activity in the last 30 days. If you think it's still relevant, please leave a comment indicating so. Otherwise, it will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
data
property is overwritten between provider and adapter data
property is overwritten between provider and hardhat-web3 adapter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In case of an error been return by the client that error represented as following json rpc response object.
The error response is identified and then thrown as an error object.
https://github.com/nomiclabs/hardhat/blob/fe38c5d12626e4d3b1c0038ed984e7acb8ae0b42/packages/hardhat-core/src/internal/core/providers/http.ts#L57-L62
But the adapter catches this error
overwrite the data property
of the error and return the response.https://github.com/nomiclabs/hardhat/blob/fe38c5d12626e4d3b1c0038ed984e7acb8ae0b42/packages/hardhat-web3/src/web3-provider-adapter.ts#L87-L93
which result in invalid handling of the error on the abi coder.
The text was updated successfully, but these errors were encountered: