Skip to content

Conversation

saucepoint
Copy link
Collaborator

@saucepoint saucepoint commented Mar 28, 2025

Related Issue

CI busted because foundry stable has breaking changes related to tests

Description of changes

  • Added allow_internal_expect_revert = true to the toml (migration guide)

  • Moved testFail* functions to test_revert* + vm.expectRevert (migration guide)

  • also actions/cache@v2 in the lint CI was deprecated so bumped that version

@saucepoint saucepoint requested a review from a team as a code owner March 28, 2025 21:02
function test_revertTransferFromBalanceOverflow(address sender, address receiver, uint256 id, uint256 amount)
public
{
vm.assume(sender != receiver);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally prefer an if statement instead of assume because of fuzzing erroring sometimes for too many assumes


function testFailTransferBalanceOverflow(address sender, address receiver, uint256 id, uint256 amount) public {
function test_revertTransferBalanceOverflow(address sender, address receiver, uint256 id, uint256 amount) public {
vm.assume(sender != receiver);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@saucepoint saucepoint merged commit df421dd into main Apr 1, 2025
5 checks passed
@saucepoint saucepoint deleted the fix-ci branch April 1, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants