mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-16 16:21:32 +03:00
fix: bigint errors fix: TS errors fix: gasLimit fetch fix: review comments fix: contracts errors chore: bump rc version fix: revert wrong fix fix: ts config fix: ts config fix: ts config feat: update signer
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
import { ethers } from 'ethers';
|
|
import { z } from 'zod';
|
|
|
|
const addressSchema = z.string().refine(ethers.isAddress, (value) => ({
|
|
message: `Should be an address, got ${value}`,
|
|
}));
|
|
|
|
export default addressSchema;
|