Skip to content

Commit

Permalink
refactor: blueprint_id is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jan 29, 2025
1 parent 5ba5526 commit 5fcf239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { NanoContractAction } from '@hathor/wallet-lib/lib/nano_contracts/types'

const sendNanoContractSchema = z.object({
method: z.string().min(1),
blueprint_id: z.string(),
blueprint_id: z.string().nullable(),
nc_id: z.string().nullable(),
actions: z.array(z.custom<NanoContractAction>()),
args: z.array(z.unknown()).default([]),
Expand Down
2 changes: 1 addition & 1 deletion packages/hathor-rpc-handler/src/types/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface AddressRequestClientPrompt extends BaseConfirmationPrompt {
}

export interface NanoContractParams {
blueprintId: string;
blueprintId: string | null;
ncId: string | null;
actions: NanoContractAction[],
method: string;
Expand Down

0 comments on commit 5fcf239

Please sign in to comment.