Skip to content

Commit

Permalink
Update packages/plugin-chainbase/src/types.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
lxcong and coderabbitai[bot] authored Jan 21, 2025
1 parent 0cc97d0 commit 88fc11d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-chainbase/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 88fc11d

Please sign in to comment.