Skip to content

Commit

Permalink
Fix absDiff function and snapshot command in package.json
Browse files Browse the repository at this point in the history
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
shuhuiluo committed Apr 26, 2024
1 parent dea326d commit ebb8b4e
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 189 deletions.
Loading

0 comments on commit ebb8b4e

Please sign in to comment.