From 88fc11d891b27e1666c11fc2ca74e3074f3a9b1f Mon Sep 17 00:00:00 2001 From: lxcong <83766787@qq.com> Date: Tue, 21 Jan 2025 16:14:58 +0800 Subject: [PATCH] Update packages/plugin-chainbase/src/types.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- packages/plugin-chainbase/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-chainbase/src/types.ts b/packages/plugin-chainbase/src/types.ts index b0bfff065d..50c449746f 100644 --- a/packages/plugin-chainbase/src/types.ts +++ b/packages/plugin-chainbase/src/types.ts @@ -7,9 +7,9 @@ export interface RetrieveTokenBalanceReq { } export const RetrieveTokenBalanceReqSchema = z.object({ - address: z.string(), + address: z.string().regex(/^0x[a-fA-F0-9]{40}$/), chain_id: z.string().optional(), - contract_address: z.string().optional(), + contract_address: z.string().regex(/^0x[a-fA-F0-9]{40}$/).optional(), }); export const isRetrieveTokenBalanceReq = (