mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-03 03:28:07 +03:00
fix hex validation
This commit is contained in:
@@ -9,6 +9,6 @@ export const evmAddressSchema = z
|
||||
|
||||
export const hexStringSchema = z
|
||||
.string()
|
||||
.refine(ethers.utils.isAddress, (v) => ({
|
||||
.refine(ethers.utils.isHexString, (v) => ({
|
||||
message: `${v} is not a valid hex string`,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user