Eric
d06edb317b
Update revertReason to work with SignerError
...
Also update the estimateGas error message, and add the revert exception as the parent.
2023-10-18 11:12:52 +11:00
Mark Spanbroek
e8592bb922
Remove unnecessary error check
2022-09-21 10:29:31 +02:00
Mark Spanbroek
7d2acd65e8
Fix imports
2022-09-21 10:29:31 +02:00
Mark Spanbroek
a62ea4fb8f
Ensure that reverts works with functions with a return type
2022-09-21 10:29:31 +02:00
Mark Spanbroek
c5a40e5f9d
Remove dependency on json-rpc provider for reverts
2022-09-21 10:29:31 +02:00
Mark Spanbroek
f545169331
Remove JSON wrapper from error in JSON RPC provider
2022-09-21 10:29:31 +02:00
Mark Spanbroek
cac6026b34
Change reverts API
...
- Enables postfix syntax: `call().reverts(reason)`
- Removes doesNotRevert etc; uses `check not` instead
- Removes waitFor(); return Future instead
2022-09-21 10:29:31 +02:00
Eric Mastro
5fe41a76ab
PR comments
...
1. rename helpers to testing and expose externally via `import pkg/ethers/testing`
2. Change detection of revert from `EthersError` to `JsonRpcProviderError`
3, Remove catch of `CatchableError` from revert detection as this would swallow errors. Update tests accordingly.
2022-09-20 13:15:15 +10:00