Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frangio/hardhat-rethrow-reproduction
https://github.com/frangio/hardhat-rethrow-reproduction
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/frangio/hardhat-rethrow-reproduction
- Owner: frangio
- Created: 2022-05-03T14:58:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-03T15:07:04.000Z (over 2 years ago)
- Last Synced: 2024-10-16T10:21:26.833Z (2 months ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Manually rethrowing the revert reason messes up the original source of the error, which should be `A.test`.
```
1) bad stack trace:
Error: VM Exception while processing transaction: reverted with reason string 'a reason'
at B.testBad (contracts/Greeter.sol:24)
at HardhatNode._mineBlockWithPendingTxs (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:1772:23)
at HardhatNode.mineBlock (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:466:16)
at EthModule._sendTransactionAndReturnHash (node_modules/hardhat/src/internal/hardhat-network/provider/modules/eth.ts:1496:18)
at HardhatNetworkProvider.request (node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
at EthersProviderWrapper.send (node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)2) good stack trace:
Error: VM Exception while processing transaction: reverted with reason string 'a reason'
at A.test (contracts/Greeter.sol:9)
at B.testGood (contracts/Greeter.sol:17)
at HardhatNode._mineBlockWithPendingTxs (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:1772:23)
at HardhatNode.mineBlock (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:466:16)
at EthModule._sendTransactionAndReturnHash (node_modules/hardhat/src/internal/hardhat-network/provider/modules/eth.ts:1496:18)
at HardhatNetworkProvider.request (node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
at EthersProviderWrapper.send (node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)
```