Skip to content

Commit

Permalink
chore: use test NFT contract + use npm cache in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Aug 28, 2024
1 parent 12aa0ca commit 7571a85
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/nft-resolver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Dependencies
run: npm install --frozen-lockfile

Expand Down
8 changes: 3 additions & 5 deletions test/NFTResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const baseDomain = `${domainName}.eth`;
const node = ethers.namehash(baseDomain);
const encodedname = encodeName(baseDomain);

// TODO use: registrantAddr = "0x4a8e79E5258592f208ddba8A8a0d3ffEB051B10A";
const registrantAddr = "0xDeaD1F5aF792afc125812E875A891b038f888258";
const registrantAddr = "0x4a8e79E5258592f208ddba8A8a0d3ffEB051B10A";
const subDomain = "foo1.foos.eth";
const subDomainNode = ethers.namehash(subDomain);
const encodedSubDomain = encodeName(subDomain);
Expand All @@ -60,7 +59,7 @@ declare module "hardhat/types/runtime" {
}
}

describe("Crosschain Resolver", () => {
describe("NFT Resolver", () => {
let l1Provider: BrowserProvider;
let l2Provider: JsonRpcProvider;
let l1SepoliaProvider: JsonRpcProvider;
Expand Down Expand Up @@ -97,8 +96,7 @@ describe("Crosschain Resolver", () => {
signer = await l1Provider.getSigner(0);
signerAddress = await signer.getAddress();
// The NFT contract deployed on Linea Sepolia
// TODO use: l2NFTContractAddress = "0x27c11E7d60bA46a55EBF1fA33E6c30eDeAb162B6";
l2NFTContractAddress = "0x03f8B4b140249Dc7B2503C928E7258CCe1d91F1A";
l2NFTContractAddress = "0x27c11E7d60bA46a55EBF1fA33E6c30eDeAb162B6";

const Rollup = await ethers.getContractFactory("RollupMock", signer);

Expand Down

0 comments on commit 7571a85

Please sign in to comment.