-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support WaffleJS testing #46
Comments
Both However, we need to ensure that WaffleJS library works as expected with our forking support. Create a WaffleJS minimal project that uses fixtures/forking similar to the tests we currently have. Put this under |
Something like that? |
Exactly. |
Ganache is not capable of creating the necessary fork for our use case, as it fails to download the HTS Smart Contract code at runtime from the forked network JSON RPC API. Given that we are already focusing on Hardhat for our development, and the addition of Waffle doesn't provide any significant benefit, I've closed the PR. More details:
Let me know if we should close this issue too @acuarica . |
Thanks for the detailed information @arianejasuwienas. Yes, I'll close this. |
Problem
To create a custom Fixture Service, we need the ability to snapshot and revert the blockchain state. This feature is essential for efficient testing and development workflows using tools like the fixtures system of the WaffleJs library.
Solution
Implement snapshotting (evm_snapshot) and reverting (evm_revert) functionalities on the Hedera network. These functionalities should be integrated into separate Fixtures Service, utilising the alternative of the Hedera JSON RPC Relay to allow interaction through standard JSON RPC calls but also being able to create snapshot and revert the state of the machine.
Alternatives
No response
Research
Project management
Implement the evm_snapshot endpoint in the Fixtures Service utilising the Hedera JSON RPC Relay.
Implement the evm_snapshot endpoint in the Fixtures Service utilising the Hedera JSON RPC Relay
Sample usage example, tests
The text was updated successfully, but these errors were encountered: