New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not create WasmInstance from valid module with context: unknown import: index::store.loadRelated
has not been defined'
#1376
Comments
@dimitrovmaksim @georg-getz do we need to update Matchstick for the new |
Hey @azf20, sorry for the late reply. Yeah all the new functions would need to be added/mocked in Matchstick. |
I'm facing the same issue, how do I fix it? Update: I think I understand the issue, it seems it is new functionality in the subgraph that has to be implemented in matchstick-as. |
I'm running into the same issue. Has anyone figured out how to write unit tests for this kind of relationship? This is what the documentation currently says
This method fails with
|
Also running into this problem. Is anyone working on it? If not, I might try to implement it as it's blocking some stuff I am trying to build. |
hey @Preston-Harrison I think @saihaj was looking at Matchstick, but this isn't currently being worked on, would be great if you might be able to help? |
Hi @Preston-Harrison, I agree with @azf20. I also think that they are not currently working on it. I need your help too) |
Hello, still getting that issue with following dependencies:
this is blocking if I keep our smart contract event unchanged. But if I change them, I do only cause previous The Graph version (graph-cli:0.46.1 ; graph-ts: 0.29.1) are not handling N-M relationships correctly within subgraph logic... A fix on that issue would be consequently much appreciated. Best, |
loadRelated should be supported in |
Well just tested with the dependencies I told you - upgraded matchstick-as from 0.5.0 to 0.6.0 for that purpose... I will retest just to be sure anyway. Is there a way to display the matchstick version used while testing ? Thank you |
You can see the version with |
OK, so I confirm matchstick 0.6.0 is solving that |
Which packages are impacted by your issue?
@graphprotocol/graph-cli
Describe the issue
Trying to run unit tests in my subgraph but getting an error:
Here the versions im using
Here's a minimal reproducible example https://github.com/hexzerodev/subgraph-load-related-error
The error pops up when running
graph test
Reproduction
https://github.com/hexzerodev/subgraph-load-related-error
Steps to Reproduce the Bug or Issue
Expected behavior
Test to be compiled properly
Screenshots or Videos
No response
Platform
Subgraph Manifest
Subgraph GraphQL Schema
Additional context
No response
The text was updated successfully, but these errors were encountered: