Skip to content

Conversation

@kcsongor
Copy link
Contributor

This test started failing as of forge v1.3.1, specifically due to this PR foundry-rs/foundry#10446.

The PR implements better error reporting when the tests run in verbose mode, so the test that previously expected an empty revert string now fails in verbose mode, because forge now returns an error about calling a contract with no bytecode.

Actually this test was supposed to test (according to the comment) that the transceiver constructor revert if the manager doesn't have the token method, but that's not what it was testing. So we change the test to actually use a dummy contract that has no token method. This returns an empty revert string, so everything is good. Until forge includes an override for that too at least

This test started failing as of forge v1.3.1, specifically due to this
PR foundry-rs/foundry#10446.

The PR implements better error reporting *when the tests run in verbose
mode*, so the test that previously expected an empty revert string now
fails in verbose mode, because forge now returns an error about calling
a contract with no bytecode.

Actually this test was supposed to test (according to the comment) that
the transceiver constructor revert if the manager doesn't have the token
method, but that's not what it was testing. So we change the test to
actually use a dummy contract that has no token method. This returns an
empty revert string, so everything is good. Until forge includes an
override for that too at least
@kcsongor kcsongor requested a review from Copilot August 19, 2025 17:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the test_transceiverIncompatibleNttManager test that started failing after Forge v1.3.1 due to improved error reporting in verbose mode. The fix ensures the test properly validates that a transceiver constructor reverts when the manager doesn't have the required token method.

  • Replace hardcoded address 0xBEEF with a proper dummy contract that lacks the token method
  • Remove duplicate test from NttManagerNoRateLimiting.t.sol to eliminate redundancy
  • Maintain expected empty revert string behavior for better test reliability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
evm/test/NttManager.t.sol Adds DummyManager contract and updates test to use it instead of hardcoded address
evm/test/NttManagerNoRateLimiting.t.sol Removes duplicate test_transceiverIncompatibleNttManagerNoRateLimiting function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kcsongor kcsongor merged commit 94a4f6b into main Aug 20, 2025
9 checks passed
@kcsongor kcsongor deleted the fix-foundry-failure branch August 20, 2025 17:20
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.

4 participants