Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Conversation

@benjamincburns
Copy link
Contributor

Just what's on the label.

return
}

var state = result ? result : server.provider.manager.state;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a small workaround to an issue I accidentally introduced during the 6.x dev cycle (server callback isn't passed the state object anymore). With the way this is written fixing the problem won't break ganache.

I was dumb and released ganache-core before I found this issue (will test better next time), so rather than pushing out yet another release, I just created this workaround. Will fix the issue in the next ganache-core release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for the writeup!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants