-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Conversation
Thanks for your contribution. |
Tried this, but tests are timing out :( const provider = new HttpProvider(getSystemTestProvider())
const injectedProvider: EIP1193Provider<EthExecutionAPI> = {
request: provider.request.bind(provider),
}
web3Eth = new Web3Eth(injectedProvider); |
This is interesting. It could be another issue that we need to take care of 😄 . |
I tested locally, and it did send transaction. Will open another PR with just test case. |
Dear @mpetrunic |
b56c9d8
to
6f0f7cb
Compare
Seems like I stopped signing commits on my new laptop. Fixed and replaced with signed commit. Also wasn't sure if we are waiting on #5309 |
Here is an MR for #5309. It contains tests for both (By the way, I could not cherry-pick this commit because it is on a private branch. So, I made a small MR from your private branch to my branch and then merged it) |
Superseded by #5652
No worries, I don't care about that 😛 |
Description
Please include a summary of the changes and be sure to follow our Contribution Guidelines.
Implementation wrongly assumes every provider has
supportsSubscriptions
method which is not true for injected providers.No idea how to write test for that.
Fixes #5591
Type of change
Checklist for 1.x:
npm run dtslint
with success and extended the tests and types if necessary.npm run test:cov
and my test cases cover all the lines and branches of the added code.npm run build
with success.dist/web3.min.js
in a browser.CHANGELOG.md
file in the root folder.Checklist for 4.x:
yarn
successfullyyarn lint
successfullyyarn build:web
successfullyyarn test:unit
successfullyyarn test:integration
successfullycompile:contracts
successfullyCHANGELOG.md
file in the packages I have edited.