Skip to content

Commit

Permalink
fix: silence linter warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 24, 2024
1 parent f755a8e commit 7569709
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/contracts-rfq/test/FastBridgeV2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol"
import {Test} from "forge-std/Test.sol";
import {stdStorage, StdStorage} from "forge-std/Test.sol";

// solhint-disable no-empty-blocks
// solhint-disable no-empty-blocks, ordering
abstract contract FastBridgeV2Test is Test {
using stdStorage for StdStorage;

Expand Down
8 changes: 4 additions & 4 deletions packages/contracts-rfq/test/MockERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ contract MockERC20 is ERC20 {
_decimals = decimals_;
}

function decimals() public view override returns (uint8) {
return _decimals;
}

function burn(address account, uint256 amount) external {
_burn(account, amount);
}

function mint(address account, uint256 amount) external {
_mint(account, amount);
}

function decimals() public view override returns (uint8) {
return _decimals;
}
}
1 change: 1 addition & 0 deletions packages/contracts-rfq/test/UniversalTokenLib.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {MockRevertingRecipient} from "./MockRevertingRecipient.sol";

import {Test} from "forge-std/Test.sol";

// solhint-disable ordering
contract UniversalTokenLibraryTest is Test {
UniversalTokenLibHarness public libHarness;
MockERC20 public token;
Expand Down
1 change: 1 addition & 0 deletions packages/contracts-rfq/test/UniversalTokenLibHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.8.17;

import {UniversalTokenLib} from "../contracts/libs/UniversalToken.sol";

// solhint-disable ordering
contract UniversalTokenLibHarness {
function universalTransfer(address token, address to, uint256 value) public {
UniversalTokenLib.universalTransfer(token, to, value);
Expand Down

0 comments on commit 7569709

Please sign in to comment.