Skip to content
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

Attach to non-fork ganache vm #391

Merged
merged 1 commit into from
Sep 10, 2019
Merged

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.

1 participant