fix hex validation

This commit is contained in:
TheJuze
2023-09-27 17:55:01 +03:00
parent 8453f92a7f
commit 1227562402
4 changed files with 27 additions and 27 deletions

View File

@@ -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`,
}));