Skip to content

Commit

Permalink
fix(test): use new pre-deployed create3 and TestProxyHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsadface committed Jan 5, 2025
1 parent 2141b1e commit 984abde
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 30 deletions.
2 changes: 1 addition & 1 deletion test/integration/BaseIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contract BaseIntegration is Test, Script, StoryProtocolCoreAddressManager, Story
RoyaltyWorkflows internal royaltyWorkflows;

/// @dev Story USD
SUSD internal StoryUSD = SUSD(0x6058bB8A2a51a8e63Bd18cE897D08616331C25a7);
SUSD internal StoryUSD = SUSD(0x48D80f8b87F7f1B6f2fBF3A7C45Eb7De6C8374F9);

/// @dev Test data
string internal testCollectionName;
Expand Down
2 changes: 1 addition & 1 deletion test/story-nft/OrgNFT.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pragma solidity 0.8.26;
// external
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { IERC721Metadata } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import { TestProxyHelper } from "@storyprotocol/test/utils/TestProxyHelper.sol";

// contracts
import { IOrgNFT } from "../../contracts/interfaces/story-nft/IOrgNFT.sol";
import { OrgNFT } from "../../contracts/story-nft/OrgNFT.sol";

// test
import { BaseTest } from "../utils/BaseTest.t.sol";
import { TestProxyHelper } from "../utils/TestProxyHelper.t.sol";

contract OrgNFTTest is BaseTest {
function setUp() public override {
Expand Down
2 changes: 1 addition & 1 deletion test/story-nft/OrgStoryNFTFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pragma solidity 0.8.26;
import { IAccessManaged } from "@openzeppelin/contracts/access/manager/IAccessManaged.sol";
import { IIPAccount } from "@storyprotocol/core/interfaces/IIPAccount.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { TestProxyHelper } from "@storyprotocol/test/utils/TestProxyHelper.sol";

// contracts
import { IOrgNFT } from "../../contracts/interfaces/story-nft/IOrgNFT.sol";
Expand All @@ -15,7 +16,6 @@ import { OrgStoryNFTFactory } from "../../contracts/story-nft/OrgStoryNFTFactory

// test
import { BaseTest } from "../utils/BaseTest.t.sol";
import { TestProxyHelper } from "../utils/TestProxyHelper.t.sol";

contract OrgStoryNFTFactoryTest is BaseTest {
string private orgName;
Expand Down
2 changes: 1 addition & 1 deletion test/story-nft/StoryBadgeNFT.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { IERC721Metadata } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import { IIPAccount } from "@storyprotocol/core/interfaces/IIPAccount.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { TestProxyHelper } from "@storyprotocol/test/utils/TestProxyHelper.sol";

// contracts
import { BaseStoryNFT } from "../../contracts/story-nft/BaseStoryNFT.sol";
Expand All @@ -17,7 +18,6 @@ import { CachableNFT } from "../../contracts/story-nft/CachableNFT.sol";

// test
import { BaseTest } from "../utils/BaseTest.t.sol";
import { TestProxyHelper } from "../utils/TestProxyHelper.t.sol";

contract StoryBadgeNFTTest is BaseTest {
function setUp() public override {
Expand Down
2 changes: 1 addition & 1 deletion test/utils/BaseTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.26;

// external
import { Test } from "forge-std/Test.sol";
import { Create3Deployer } from "@create3-deployer/contracts/Create3Deployer.sol";
import { Create3Deployer } from "@storyprotocol/script/utils/Create3Deployer.sol";
import { MessageHashUtils } from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import { AccessPermission } from "@storyprotocol/core/lib/AccessPermission.sol";
import { IAccessController } from "@storyprotocol/core/interfaces/access/IAccessController.sol";
Expand Down
25 changes: 0 additions & 25 deletions test/utils/TestProxyHelper.t.sol

This file was deleted.

0 comments on commit 984abde

Please sign in to comment.