FuelLabs / fuel-indexer

🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
https://docs.fuel.network/docs/indexer/
140 stars 66 forks source link

b256 usage #1477

Open Braqzen opened 10 months ago

Braqzen commented 10 months ago

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.

ra0x3 commented 10 months ago

@Braqzen

Braqzen commented 10 months ago

@Braqzen

  • Any more specific details here?
  • We definitely export Bytes32 and b256

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.

ra0x3 commented 10 months ago

@Braqzen

You can only pass complex types to your indexer handlers