Paul Berg

Results 723 comments of Paul Berg

Oooh, right. I remember reading about this limitation in the [release spec](https://github.com/nomiclabs/hardhat/releases/tag/hardhat-core-v2.4.0): > Keep in mind that Hardhat can only recognize custom errors that are defined within your project. If...

I've just bumped into a case where this happens even when the custom errors is defined locally in my project. I have a custom error defined in contract B, which...

Side note: what if Hardhat included the error selector in the logged error? That way, those of us who know how to handle selectors could use them. It happens that...

The target contract is also mine. It is defined in the same repo and I can see an artifacts generated for it. See this: https://github.com/paulrberg/prb-proxy/tree/6f2e4c2da37c3289d85218692d5a0a7f3a0ebb8f/contracts/test > I think this is...

@PatrickAlphaC I ended up importing the said contract which included the custom error I wanted to test for. I did that by [manually importing the contract in my code base](https://github.com/hifi-finance/hifi/blob/fb506210174c88eaa521241221e8c7084a2d1416/packages/flash-swap/contracts/test/Fintroller.sol),...

> Have a list of "well-known" custom errors that comes with Hardhat This would be epic! Something like [4byte.directory](https://www.4byte.directory/) but for custom errors. > Fetch the code from etherscan, assuming...

> That is, custom errors are encoded in the same way that function calls are encoded I actually didn't know, I didn't read the low-level spec. Fantastic.

@IAliceBobI custom errors don't exist in v0.6 of Solidity. They have been [introduced](https://blog.soliditylang.org/2021/04/21/custom-errors/) in v0.8.4. There's really no good reason to not upgrade to the latest compiler version. **Update**: I...

Hi @kevincheng96, I can't remember the exact issue I described above, but I think I finally made it work at least in my testing environment. Take a look at the...

Looks like @samczsun newly released signature database could be relevant here? [sig.eth.samczsun.com](https://sig.eth.samczsun.com/)