Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
absDiff
function and snapshot command in package.json
The absDiff function in TernaryLib.sol has been updated to prevent overflow of int256 when computing the difference between two uint256 values. This is achieved by handling the subtraction operation differently based on whether 'a' is greater than 'b'. Additionally, the snapshot and snapshot:diff command in package.json was simplified by removing unnecessary options (--via-ir and --evm-version cancun).
- Loading branch information