mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-26 23:57:48 +03:00
Fix pools schema
This commit is contained in:
8
src/addressSchema.ts
Normal file
8
src/addressSchema.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user