-
Notifications
You must be signed in to change notification settings - Fork 230
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Trying to create a new subgraph indexing the MORFI token on zkSync Era. I suppose something goes wrong when fetching the ABI, maybe because of how the contract was verified? It looks like it's trying to access the ABI on a weird path.
Logs:
pablo:~/repos/morfi-subgraph (main #)$ graph init --studio
› Warning: In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more
› about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/
› Warning: In next major version, this flag will be removed. By default we will deploy to the Graph Studio. Learn more
› about Sunrise of Decentralized Data https://thegraph.com/blog/unveiling-updated-sunrise-decentralized-data/
› Warning: In next major version, this flag will be removed. By default we will stop initializing a Git repository.
✔ Protocol · ethereum
✔ Subgraph slug · morfi-subgraph
✔ Directory to create the subgraph in · morfi-subgraph
? Ethereum network …
? Ethereum network …
? Ethereum network …
? Ethereum network …
? Ethereum network …
? Ethereum network …
? Ethereum network …
✔ Ethereum network · zksync-era
✔ Contract address · 0xd9AE1b1Ec5970EaEc4b9EE37E17c7f43D6906deA
✔ Fetching ABI from Etherscan
✔ Fetching Start Block
✔ Fetching Contract Name
✔ Start Block · 40678443
✔ Contract Name · MORFI
✔ Index contract events as entities (Y/n) · true
Generate subgraph
Write subgraph to directory
⠋ Create subgraph scaffold/Users/pablo/.config/yarn/global/node_modules/gluegun/build/index.js:15
throw up;
^
[Error: ENOENT: no such file or directory, open 'morfi-subgraph/abis/contracts/MORFI.sol:MORFI.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'morfi-subgraph/abis/contracts/MORFI.sol:MORFI.json'
}
Node.js v18.18.2
pablo:~/repos/morfi-subgraph/morfi-subgraph (main #)$ graph --version
@graphprotocol/graph-cli/0.80.1 darwin-arm64 node-v18.18.2
Reproduction
graph cli
Steps to Reproduce the Bug or Issue
See the logs above, it should be reproducible by running graph init witht he same arguments
Expected behavior
I expected graph init to complete without errors, and for all the files to be generated properly. Instead the process was interrupted, and I could not find the ABI in the output.
Screenshots or Videos
No response
Platform
@graphprotocol/graph-cli/0.80.1 darwin-arm64 node-v18.18.2
Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
✅ Done