This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 93
Improve execution speed by using provider hooks #171
Comments
I'm thinking about adding provider wrapping functionality to the Buidler plugin system. I think it would be useful to implement things like hardware wallet integrations. It should also work for this kind of things. What do you think? In the meantime, I think you can monkey-patch the provider from the Buidler Runtime Environment. |
@alcuadrado Yes a wrapping API would be really cool! Monkey patching is fine too though :) |
This was referenced Jul 31, 2019
This was referenced May 25, 2020
This is done at hardhat-gas-reporter. Will track doing the same for ganache at #225 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since
web3.currentProvider
is injected into the Truffle test context it should be possible to hijack it and wrapSame for buidler although this needs some additional investigation since the provider there comes with it's own wrapping...
Think we can do this safely since we'll be operating inside the async envelope that mocha waits for. There will be data loss - the mocha per test output - not sure how valuable this is anyway.
It could be a 'fast' option for industrial sized suites that need to run ~ as quickly as a spec reporter.
The text was updated successfully, but these errors were encountered: