Skip to content

Commit

Permalink
style: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Dec 1, 2023
1 parent 69052b9 commit 2527ade
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"linea",
"LINEASCAN",
"MAXTIME",
"MBOX",
"Merkle",
"mload",
"mulmod",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Recei
import {IStarNFT} from "src/bridge/interfaces/IStarNFT.sol";
import {IBadgeReceiverV2} from "src/bridge/interfaces/IBadgeReceiverV2.sol";

contract GalaxeBadgeReceiverV2 is IBadgeReceiverV2, Ownable, IERC721Receiver {
contract GalxeBadgeReceiverV2 is IBadgeReceiverV2, Ownable, IERC721Receiver {
using SafeERC20 for IERC20;

address constant BLACK_HOLE_ADDRESS = address(1);
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/test/Base.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {ERC20MissingReturn} from "test/mocks/ERC20/ERC20MissingReturn.sol";
import {Test} from "forge-std/Test.sol";

struct Users {
// Default admin for all Sablier V2 contracts.
// Default admin
address payable admin;
// Impartial user.
address payable alice;
Expand Down
6 changes: 3 additions & 3 deletions packages/dev/test/uint/fuzz/GBROnlyOwnerTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ contract GBR_OnlyOwner_Test is GalxeBadgeReceiverV2Test {
}

function testFuzz_onlyOwner_UpdateValidNftAddr(address eve) public onlyOwnerCanCall(eve) {
galaxeBadgeReceiverV2.updateValidNftAddr(makeAddr("NFT"), true);
galxeBadgeReceiverV2.updateValidNftAddr(makeAddr("NFT"), true);
}

function testFuzz_onlyOwner_UpdateSigner(address eve) public onlyOwnerCanCall(eve) {
galaxeBadgeReceiverV2.updateSigner(users.signer, true);
galxeBadgeReceiverV2.updateSigner(users.signer, true);
}

function testFuzz_onlyOwner_UpdateDstValidity(address eve) public onlyOwnerCanCall(eve) {
galaxeBadgeReceiverV2.updateDstValidity(1, true);
galxeBadgeReceiverV2.updateDstValidity(1, true);
}
}
6 changes: 3 additions & 3 deletions packages/dev/test/uint/shared/GalxeBadgeReceiverV2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
pragma solidity ^0.8.0;

import {BaseTest} from "test/Base.t.sol";
import {GalaxeBadgeReceiverV2} from "src/bridge/GalaxeBadgeReceiverV2.sol";
import {GalxeBadgeReceiverV2} from "src/bridge/GalxeBadgeReceiverV2.sol";
import {Ownable} from "solady/auth/Ownable.sol";

contract GalxeBadgeReceiverV2Test is BaseTest {
GalaxeBadgeReceiverV2 internal galaxeBadgeReceiverV2;
GalxeBadgeReceiverV2 internal galxeBadgeReceiverV2;

function setUp() public override {
super.setUp();
deploy();
}

function deploy() internal {
galaxeBadgeReceiverV2 = new GalaxeBadgeReceiverV2(users.admin, address(usdt));
galxeBadgeReceiverV2 = new GalxeBadgeReceiverV2(users.admin, address(usdt));
}
}

0 comments on commit 2527ade

Please sign in to comment.