From 035bc5b069d2fa140798d19b7ee67081518347b7 Mon Sep 17 00:00:00 2001 From: Gabriel Montes Date: Thu, 13 Feb 2025 10:08:02 -0500 Subject: [PATCH] Increase max JSON file size for contract verification --- .../fields/ContractVerificationFieldSources.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/contractVerification/fields/ContractVerificationFieldSources.tsx b/ui/contractVerification/fields/ContractVerificationFieldSources.tsx index e9c39263d1..c9d4b82e7a 100644 --- a/ui/contractVerification/fields/ContractVerificationFieldSources.tsx +++ b/ui/contractVerification/fields/ContractVerificationFieldSources.tsx @@ -139,8 +139,8 @@ const ContractVerificationFieldSources = ({ fileTypes, multiple, required, title const validateFileSize = React.useCallback(async(value: FieldPathValue): Promise => { if (Array.isArray(value)) { - const FILE_SIZE_LIMIT = 20 * Mb; - const errors = value.map(({ size }) => size > FILE_SIZE_LIMIT ? 'File is too big. Maximum size is 20 Mb.' : ''); + const FILE_SIZE_LIMIT = 50 * Mb; + const errors = value.map(({ size }) => size > FILE_SIZE_LIMIT ? 'File is too big. Maximum size is 50 Mb.' : ''); if (errors.some((item) => item !== '')) { return errors.join(';'); }