Skip to content

Commit

Permalink
fix prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Oct 18, 2023
1 parent 22157fd commit 80d5b90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
34 changes: 21 additions & 13 deletions packages/1155-contracts/package/premint-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import {
import { foundry } from "viem/chains";
import { describe, it, beforeEach, expect, vi } from "vitest";
import { parseEther } from "viem";
import {
zoraCreator1155FactoryImplAddress,
} from "./wagmiGenerated";
import { zoraCreator1155FactoryImplAddress } from "./wagmiGenerated";
import { BackendChainNames, PreminterAPI } from "./premint-api";

const chain = foundry;
Expand Down Expand Up @@ -76,10 +74,12 @@ describe("ZoraCreator1155Preminter", () => {
collection: {
contractAdmin: deployerAccount,
contractName: "Testing Contract",
contractURI: "ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
},
token: {
tokenURI: "ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
tokenURI:
"ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
},
});

Expand All @@ -90,7 +90,8 @@ describe("ZoraCreator1155Preminter", () => {
collection: {
contractAdmin: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
contractName: "Testing Contract",
contractURI: "ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
},
premint: {
deleted: false,
Expand All @@ -104,7 +105,8 @@ describe("ZoraCreator1155Preminter", () => {
royaltyBPS: 1000,
royaltyMintSchedule: 0,
royaltyRecipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
tokenURI: "ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
tokenURI:
"ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
},
uid: 3,
version: 1,
Expand All @@ -126,7 +128,8 @@ describe("ZoraCreator1155Preminter", () => {
collection: {
contractAdmin: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
contractName: "Testing Contract",
contractURI: "ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
},
premint: {
uid: 3,
Expand All @@ -142,7 +145,8 @@ describe("ZoraCreator1155Preminter", () => {
royaltyBPS: 1000,
fixedPriceMinter: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
royaltyRecipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
tokenURI: "ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
tokenURI:
"ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
},
},
chain_name: "ZORA-TESTNET",
Expand Down Expand Up @@ -171,7 +175,8 @@ describe("ZoraCreator1155Preminter", () => {
collection: {
contractAdmin: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
contractName: "Testing Contract",
contractURI: "ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
},
premint: {
deleted: false,
Expand All @@ -185,7 +190,8 @@ describe("ZoraCreator1155Preminter", () => {
royaltyBPS: 1000,
royaltyMintSchedule: 0,
royaltyRecipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
tokenURI: "ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
tokenURI:
"ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
},
uid: 3,
version: 1,
Expand Down Expand Up @@ -216,7 +222,8 @@ describe("ZoraCreator1155Preminter", () => {
contractConfig: {
contractAdmin: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
contractName: "Testing Contract",
contractURI: "ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
contractURI:
"ipfs://bafkreiainxen4b4wz4ubylvbhons6rembxdet4a262nf2lziclqvv7au3e",
},
createdNewContract: false,
minter: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
Expand All @@ -231,7 +238,8 @@ describe("ZoraCreator1155Preminter", () => {
royaltyBPS: 1000,
royaltyMintSchedule: 0,
royaltyRecipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
tokenURI: "ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
tokenURI:
"ipfs://bafkreice23maski3x52tsfqgxstx3kbiifnt5jotg3a5ynvve53c4soi2u",
},
tokenId: 1n,
uid: 3,
Expand Down
2 changes: 1 addition & 1 deletion packages/1155-contracts/package/premint-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class PreminterAPI {
* @param publicClient Optional viem public client
* @returns Existing public client or makes a new one for the given chain as needed.
*/
getPublicClient(publicClient?: PublicClient) {
getPublicClient(publicClient?: PublicClient): PublicClient {
if (publicClient) {
return publicClient;
}
Expand Down

0 comments on commit 80d5b90

Please sign in to comment.