Skip to content

Commit

Permalink
snapshot payload uses snapshot id
Browse files Browse the repository at this point in the history
  • Loading branch information
kevarifin14 committed Mar 5, 2024
1 parent 823de87 commit 4c746cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/models/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dateStringSchema } from "./primitive";

export const snapshotSchema = z.object({
id: z.string(),
description: z.string().nullish(),
description: z.string(),
count: z.number(),
mintAddress: base58PublicKeySchema.nullish(),
url: z.string().nullish(),
Expand Down
4 changes: 1 addition & 3 deletions src/payloads/snapshot.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { z } from "zod";

import { base58PublicKeySchema } from "../models";

export const createSnapshotPayloadSchema = z.object({
mintAddress: base58PublicKeySchema,
snapshotId: z.string(),
hashlist: z.boolean(),
unique: z.boolean(),
});
Expand Down

0 comments on commit 4c746cc

Please sign in to comment.