You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solidity 0.8 introduced a new Panic(uint256) encoding for revert data, used in Solidity built-in errors such as overflow. This is a new alternative to the existing Error(string) encoding.
From a quick test using hardhat console and hardhat-ethers, triggering an overflow prints Error: Transaction reverted for an unrecognized reason..
This should produce an error with a message that identifies it as a panic, together with the corresponding error code. We want to extend expectRevert from OpenZeppelin Test Helpers to detect panics as well.
The text was updated successfully, but these errors were encountered:
Solidity 0.8 introduced a new
Panic(uint256)
encoding for revert data, used in Solidity built-in errors such as overflow. This is a new alternative to the existingError(string)
encoding.From a quick test using hardhat console and hardhat-ethers, triggering an overflow prints
Error: Transaction reverted for an unrecognized reason.
.This should produce an error with a message that identifies it as a panic, together with the corresponding error code. We want to extend
expectRevert
from OpenZeppelin Test Helpers to detect panics as well.The text was updated successfully, but these errors were encountered: