Skip to content

Commit

Permalink
test registration is blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Dec 17, 2024
1 parent 3a8c9d9 commit 40b51f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contracts/test/Gateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1101,4 +1101,10 @@ contract GatewayTest is Test {
vm.expectRevert(Assets.TokenAlreadyRegistered.selector);
IGateway(address(gateway)).registerToken{value: fee}(dotToken);
}

function testRegisterTokenWithEthWillReturnInvalidToken() public {
uint256 fee = IGateway(address(gateway)).quoteRegisterTokenFee();
vm.expectRevert(Assets.InvalidToken.selector);
IGateway(address(gateway)).registerToken{value: fee}(address(0));
}
}

0 comments on commit 40b51f8

Please sign in to comment.