Check existing issues
Viem Version
2.48.1
Current Behavior
Calling TestClient.revert with an invalid, malformed or nonexinstent snapshot ID is a failure that is not observable when calling the function.
Expected Behavior
An issue like this should throw an error. In most cases it will crash the test in which it's used, which is the correct behavior because the snapshot handling logic must be invalid and the chain is in an unexpected state. The users may explicitly choose to catch and ignore the error to return to the current behavior.
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
Check existing issues
Viem Version
2.48.1
Current Behavior
Calling
TestClient.revertwith an invalid, malformed or nonexinstent snapshot ID is a failure that is not observable when calling the function.Expected Behavior
An issue like this should throw an error. In most cases it will crash the test in which it's used, which is the correct behavior because the snapshot handling logic must be invalid and the chain is in an unexpected state. The users may explicitly choose to catch and ignore the error to return to the current behavior.
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response