Open Braqzen opened 10 months ago
@Braqzen
Bytes32
and b256
b256
isn't in the prelude however, it's in the module@Braqzen
- Any more specific details here?
We definitely export
Bytes32
andb256
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.
Probably a user error somewhere.
@Braqzen
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)
You can only pass complex types to your indexer handlers
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.