Codegen does not import Address
type if file/ipfs
template is declared first under templates
#1453
Labels
bug
Something isn't working
Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Declaring the templates in the following order
will generate the following imports in
generated/templates.ts
:but if the
file/ipfs
template is declared before theethereum/contract
the Address import is missinggenerated/templates.ts
Reproduction
https://github.com/LimeChain/demo-subgraph/tree/codegen-missing-imports
Steps to Reproduce the Bug or Issue
codegen-missing-imports
generated/templates.ts
. Address import is missing, but is required byGraphTokenLockWallet
create/createWithContextgenerated/templates.ts
. Address import is presentExpected behavior
It should import all required types
Screenshots or Videos
No response
Platform
@graphprotocol/graph-cli/0.57.0 darwin-arm64 node-v18.17.0
Subgraph Manifest
No response
Subgraph GraphQL Schema
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: