Skip to content

Commit

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

// create token and contract creation config:
const defaultContractConfig = ({
Expand Down Expand Up @@ -142,7 +147,7 @@ describe("ZoraCreator1155Preminter", () => {
);
makeAnvilTest({
forkUrl: forkUrls.zoraGoerli,
forkBlockNumber: 1676105
forkBlockNumber: 1676105,
})(
"can sign and recover a signature",
async ({ viemClients }) => {
Expand Down Expand Up @@ -179,12 +184,13 @@ describe("ZoraCreator1155Preminter", () => {

const preminterAddress = zoraCreator1155PremintExecutorAddress[999];
// recover and verify address is correct
const [,,recoveredAddress] = await viemClients.publicClient.readContract({
abi: preminterAbi,
address: preminterAddress,
functionName: "isValidSignature",
args: [contractConfig, premintConfig, signedMessage],
});
const [, , recoveredAddress] =
await viemClients.publicClient.readContract({
abi: preminterAbi,
address: preminterAddress,
functionName: "isValidSignature",
args: [contractConfig, premintConfig, signedMessage],
});

expect(recoveredAddress).to.equal(creatorAccount);
},
Expand Down

0 comments on commit 7bf9aac

Please sign in to comment.