LimeChain / matchstick

🔥 Unit testing framework for Subgraph development on The Graph protocol. ⚙️
MIT License
207 stars 17 forks source link

Entity loadInBlock not working #396

Closed Louis-Amas closed 11 months ago

Louis-Amas commented 1 year ago

I think the title is self explanatory :)

I'm using auto generated code with graph codegen

thread 'main' panicked at '🆘 Could not create WasmInstance from valid module with context: unknown import: `index::store.get_in_block` has not been defined'
dimitrovmaksim commented 1 year ago

Hey, I believe this is new functionality that was added recently, so it's not implemented in matchstick.

Louis-Amas commented 1 year ago

Ok, I think it should be easy to add as we can just create a function load_in_block that fallback to normal load ?

Preston-Harrison commented 1 year ago

Same with loadRelated

dimitrovmaksim commented 11 months ago

Should be fixed by https://github.com/LimeChain/matchstick/pull/398 and https://github.com/LimeChain/matchstick/pull/399 Can be tested with https://github.com/LimeChain/matchstick/releases/tag/0.6.0-rc.3