Skip to content

Commit

Permalink
Silence compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Oct 18, 2024
1 parent 78bddc2 commit 9614157
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
5 changes: 3 additions & 2 deletions test-foundry/AtomicTokenBridgeFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ contract MockInbox is Test {
return address(this);
}

function hasRole(bytes32, address) external view returns (bool) {
function hasRole(bytes32, address) external pure returns (bool) {
return true;
}

function getProxyAdmin() external view returns (address) {
return address(this);
}

function calculateRetryableSubmissionFee(uint256, uint256) external view returns (uint256) {
function calculateRetryableSubmissionFee(uint256, uint256) external pure returns (uint256) {
return 0;
}

Expand Down Expand Up @@ -103,6 +103,7 @@ contract MockInbox is Test {
}
}
vm.stopPrank();
return 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion test-foundry/L1ArbitrumGateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ abstract contract L1ArbitrumGatewayTest is Test {
contract L1ArbitrumGatewayMock is L1ArbitrumGateway {
function calculateL2TokenAddress(address x)
public
view
pure
override(ITokenGateway, TokenGateway)
returns (address)
{
Expand Down
16 changes: 4 additions & 12 deletions test-foundry/L1ForceOnlyReverseCustomGateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -295,19 +295,11 @@ contract L1ForceOnlyReverseCustomGatewayTest is L1ReverseCustomGatewayTest {
);
}

function test_registerTokenToL2_CustomRefund(address, address) public virtual override {
0; // N/A
}
function test_registerTokenToL2_CustomRefund(address, address) public virtual override {}

function test_registerTokenToL2_UpdateToSameAddress(address, address) public virtual override {
0; // N/A
}
function test_registerTokenToL2_UpdateToSameAddress(address, address) public virtual override {}

function test_registerTokenToL2_revert_NoUpdateToDifferentAddress() public virtual override {
0; // N/A
}
function test_registerTokenToL2_revert_NoUpdateToDifferentAddress() public virtual override {}

function test_registerTokenToL2_revert_NotArbEnabled() public virtual override {
0; // N/A
}
function test_registerTokenToL2_revert_NotArbEnabled() public virtual override {}
}

0 comments on commit 9614157

Please sign in to comment.