Skip to content

Conversation

@cgewecke
Copy link
Member

Adds logic to use an in-process ganache supplied by the dev platform's plugin API, falling back on ganache-core-sc (2.7.0) if that fails.

Because there is no official API at ganache yet exposing the vm step and because the vm is instantiated at ganache core launch and every time an eth_call is made, we attach in kind of a complicated (brittle?) way:

  • monkey-patched around blockchain_double.createVMFromStateTrie (eth_call)
  • attached to provider.engine.manager.state.blockchain (eth_send)

@cgewecke cgewecke merged commit 0ef36c9 into truffle-plugin Sep 10, 2019
@cgewecke cgewecke deleted the production-ganache branch September 10, 2019 06:35
cgewecke added a commit that referenced this pull request Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants