Skip to content

Commit 5df304c

Browse files
authored
fix: fantom network URLs (#1015)
* fix: fantom network URLs * changeset * ci use pnpm * ci: should only run on push to main
1 parent dd12bc9 commit 5df304c

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.changeset/good-coats-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix fantom network init URLs

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
npmTag: alpha
1717
buildScript: build
1818
nodeVersion: 16
19+
packageManager: pnpm
1920
secrets:
2021
githubToken: ${{ secrets.GITHUB_TOKEN }}
2122
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release
22
on:
3-
pull_request:
3+
push:
44
branches:
55
- main
66

@@ -10,6 +10,7 @@ jobs:
1010
with:
1111
releaseScript: release
1212
nodeVersion: 16
13+
packageManager: pnpm
1314
secrets:
1415
githubToken: ${{ secrets.GITHUB_TOKEN }}
1516
npmToken: ${{ secrets.NPM_TOKEN }}

packages/cli/src/command-helpers/abi.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ const getEtherscanLikeAPIUrl = (network) => {
6666
case "avalanche": return `https://api.snowtrace.io/api`;
6767
case "fuji": return `https://api-testnet.snowtrace.io/api`;
6868
case "gnosis": return `https://api.gnosisscan.io/api`;
69+
case "fantom": return `https://api.ftmscan.com/api`;
70+
case "fantom-testnet": return `https://api-testnet.ftmscan.com/api`;
6971
default: return `https://api-${network}.etherscan.io/api`
7072
}
7173
}

0 commit comments

Comments
 (0)