Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-astro
Browse files Browse the repository at this point in the history
  • Loading branch information
afsardo authored Feb 27, 2024
2 parents 08541b1 + 1b954d5 commit ba55472
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Validate changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *".json"* && $file != "base.json" ]]; then
if [[ $file == *".json"* && $file != *"base.json"* ]]; then
yarn validate:token $file
fi
done
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"contractAddress": "terra1sxe8u2hjczlekwfkcq0rs28egt38pg3wqzfx4zcrese4fnvzzupsk9gjkq",
"imageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-contract-registry/main/images/phoenix/bmos.png",
"metadata": {
"name": "Bitmos",
"symbol": "BMOS",
"decimals": 6
}
}
Binary file added images/phoenix/bmos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ba55472

Please sign in to comment.