Skip to content

Commit

Permalink
Fix png validation image size
Browse files Browse the repository at this point in the history
  • Loading branch information
HeesungB committed Feb 27, 2024
1 parent 280b9a2 commit eaf883d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/validate-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import { sortedJsonByKeyStringify } from "@keplr-wallet/common";
const width = dimensions.width ?? 0;
const height = dimensions.height ?? 0;

if (width > 512 || height > 512) {
if (width > 513 || height > 513) {
throw new Error(
`Reduce image size to 512x512 or smaller (expected: 512x512, actual: ${width}x${height})`
);
Expand Down

0 comments on commit eaf883d

Please sign in to comment.