Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion evm/test/NttManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import "./mocks/DummyTransceiver.sol";
import "../src/mocks/DummyToken.sol";
import "./mocks/MockNttManager.sol";

contract DummyManager {}

// TODO: set this up so the common functionality tests can be run against both
contract TestNttManager is Test, IRateLimiterEvents {
MockNttManagerContract nttManager;
Expand Down Expand Up @@ -333,8 +335,9 @@ contract TestNttManager is Test, IRateLimiterEvents {

function test_transceiverIncompatibleNttManager() public {
// Transceiver instantiation reverts if the nttManager doesn't have the proper token method
address dummyManager = address(new DummyManager());
vm.expectRevert(bytes(""));
new DummyTransceiver(address(0xBEEF));
new DummyTransceiver(dummyManager);
}

function test_transceiverWrongNttManager() public {
Expand Down
6 changes: 0 additions & 6 deletions evm/test/NttManagerNoRateLimiting.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,6 @@ contract TestNttManagerNoRateLimiting is Test, IRateLimiterEvents {
nttManager.setTransceiver(address(e2));
}

function test_transceiverIncompatibleNttManagerNoRateLimiting() public {
// Transceiver instantiation reverts if the nttManager doesn't have the proper token method
vm.expectRevert(bytes(""));
new DummyTransceiver(address(0xBEEF));
}

function test_transceiverWrongNttManagerNoRateLimiting() public {
// TODO: this is accepted currently. should we include a check to ensure
// only transceivers whose nttManager is us can be registered? (this would be
Expand Down
Loading