Skip to content

Commit

Permalink
fix preminter test
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Nov 14, 2023
1 parent b21466f commit a1da19c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/protocol-sdk/src/premint/preminter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
TokenCreationConfig,
preminterTypedDataDefinition,
} from "./preminter";
import { AnvilViemClientsTest, anvilTest } from "src/anvil";
import { AnvilViemClientsTest, anvilTest, forkUrls, makeAnvilTest } from "src/anvil";

// create token and contract creation config:
const defaultContractConfig = ({
Expand Down Expand Up @@ -133,7 +133,10 @@ describe("ZoraCreator1155Preminter", () => {
},
20 * 1000,
);
anvilTest(
makeAnvilTest({
forkUrl: forkUrls.zoraGoerli,
forkBlockNumber: 1676105
})(
"can sign and recover a signature",
async ({ viemClients }) => {
const {
Expand Down Expand Up @@ -167,7 +170,7 @@ describe("ZoraCreator1155Preminter", () => {
account: creatorAccount,
});

const preminterAddress = zoraCreator1155FactoryImplAddress[999];
const preminterAddress = zoraCreator1155PremintExecutorAddress[999];
// recover and verify address is correct
const [,,recoveredAddress] = await viemClients.publicClient.readContract({
abi: preminterAbi,
Expand Down

0 comments on commit a1da19c

Please sign in to comment.