mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 22:52:36 +03:00
9 lines
222 B
TypeScript
9 lines
222 B
TypeScript
import { ethers } from 'ethers';
|
|
import { z } from 'zod';
|
|
|
|
const addressSchema = z.string().refine(ethers.utils.isAddress, (value) => ({
|
|
message: `Should be an address, got ${value}`,
|
|
}));
|
|
|
|
export default addressSchema;
|