You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
This will likely be a quick issue because it's probably a user (my) error.
When attempting to capture the b256 in the indexer it seemed like the Bytes32 types was not in the prelude and needed to be imported. When using (whatever) the default LSP import in VsCode for compilation there was a type mismatch and thus I couldn't get the indexer to build.
The text was updated successfully, but these errors were encountered:
b256 isn't in the prelude however, it's in the module
Sorry, all I recall is that I've tried to use the Bytes32 in the params for the indexer and it did not recognize it. I needed to import it and it automatically imported from the tx module from somewhere and that was incompatible.
Ahh I see, if you tried to do fn do_a_thing(b: Bytes32) that wouldn't work because Bytes32 is a scalar, and indexer handler functions only support those complex-ish types (e.g., fn do_a_thing(b: StructThatUsesBytes32Inside)
I'm seeing that a common theme here is:
You can only pass complex types to your indexer handlers
Another documentation thing
Open to suggestions here as well with regard to where we should put this in the docs
This will likely be a quick issue because it's probably a user (my) error.
When attempting to capture the b256 in the indexer it seemed like the Bytes32 types was not in the prelude and needed to be imported. When using (whatever) the default LSP import in VsCode for compilation there was a type mismatch and thus I couldn't get the indexer to build.
The text was updated successfully, but these errors were encountered: