From ada32684f3c469d11ee88b6183fc871fc1876bad Mon Sep 17 00:00:00 2001 From: mortimr Date: Wed, 10 Apr 2024 10:49:30 +0200 Subject: [PATCH] feat: add missing nullable fields --- src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index a133fb5..060e474 100644 --- a/src/types.ts +++ b/src/types.ts @@ -104,7 +104,7 @@ export const TransactionSchema = z.object({ safe: z.string(), to: z.string(), value: z.string(), - data: z.string().optional(), + data: z.string().optional().nullable(), operation: z.number(), gasToken: z.string(), safeTxGas: z.number(), @@ -119,7 +119,7 @@ export const TransactionSchema = z.object({ transactionHash: z.string().optional(), safeTxHash: z.string(), executor: z.string().optional(), - proposer: z.string(), + proposer: z.string().nullable(), isExecuted: z.boolean(), isSuccessful: z.boolean().optional(), ethGasPrice: z.string().optional(), @@ -133,7 +133,7 @@ export const TransactionSchema = z.object({ z.object({ owner: z.string(), submissionDate: z.string(), - transactionHash: z.string().optional(), + transactionHash: z.string().optional().nullable(), signature: z.string(), signatureType: z.string().optional() })