Skip to content

Commit

Permalink
Merge pull request #24 from hemilabs/higher-json-limit
Browse files Browse the repository at this point in the history
Increase max JSON file size for contract verification
  • Loading branch information
gabmontes authored Feb 14, 2025
2 parents 16d3832 + 035bc5b commit 1b47c6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ const ContractVerificationFieldSources = ({ fileTypes, multiple, required, title

const validateFileSize = React.useCallback(async(value: FieldPathValue<FormFields, typeof name>): Promise<ValidateResult> => {
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(';');
}
Expand Down

0 comments on commit 1b47c6e

Please sign in to comment.