Skip to content

Commit 3e288bd

Browse files
authored
Merge pull request #200 from cosmology-tech/eason/chain-template
bug fixed for chain-template
2 parents c6772e9 + c342c76 commit 3e288bd

File tree

8 files changed

+14347
-64
lines changed

8 files changed

+14347
-64
lines changed

.github/workflows/run-tests-build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,18 @@ jobs:
6161
- name: Set up Yarn
6262
uses: threeal/[email protected]
6363

64+
- name: Get last git commit hash
65+
run: |
66+
echo "DIFF_HASH=$(git log -1 --pretty=format:%H)" >> $GITHUB_ENV
67+
6468
- name: Cache NextJS
6569
uses: actions/cache@v4
6670
with:
6771
path: |
6872
${{ github.workspace }}/.next/cache
6973
# Generate a new cache whenever packages or source files change.
70-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
74+
#key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
75+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ env.DIFF_HASH }}
7176
# If source files changed but packages didn't, rebuild from a prior cache.
7277
restore-keys: |
7378
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-

.github/workflows/run-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
run: |
6161
cca --example nft --name nft
6262
cd nft
63+
touch yarn.lock
64+
yarn install
6365
yarn build
6466
6567
- name: authz

examples/nft/package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@
1212
"locks": "npm run locks:remove && npm run locks:create",
1313
"watch:codegen": "npx graphql-code-generator --config ./config/codegen.ts --watch"
1414
},
15-
"resolutions": {
16-
"react": "18.2.0",
17-
"react-dom": "18.2.0",
18-
"@types/react": "18.0.25",
19-
"@types/react-dom": "18.0.9"
20-
},
2115
"dependencies": {
22-
"@chain-registry/types": "0.17.0",
16+
"@chain-registry/types": "^0.16.0",
2317
"@cosmjs/cosmwasm-stargate": "0.31.3",
2418
"@cosmjs/stargate": "0.32.3",
2519
"@cosmos-kit/react": "2.17.0",
2620
"@emotion/react": "11.10.6",
2721
"@emotion/styled": "11.10.6",
28-
"@interchain-ui/react": "^1.23.29",
22+
"@interchain-ui/react": "1.23.29",
2923
"@interchain-ui/react-no-ssr": "^0.1.6",
3024
"@tanstack/react-query": "4.32.0",
3125
"bignumber.js": "9.1.0",
@@ -49,8 +43,8 @@
4943
"@types/node": "^20.14.6",
5044
"@types/react": "^18.3.3",
5145
"@types/react-dom": "^18.3.0",
52-
"eslint": "8.56.0",
53-
"eslint-config-next": "14.1.0",
46+
"eslint": "8.57.0",
47+
"eslint-config-next": "14.2.3",
5448
"generate-lockfile": "0.0.12",
5549
"typescript": "^5.1.6"
5650
},

examples/nft/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function getLogo(from: Asset | Chain) {
9797

9898
export function getChainLogo(name: string) {
9999
const chain = chains.find(chain => chain.chain_name === name)
100-
return chain ? getLogo(chain) : null;
100+
return chain ? getLogo(chain as any) : null;
101101
}
102102

103103
export function getStargazeProfileLink(address: string | undefined) {

0 commit comments

Comments
 (0)