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

Resolve Sway contract `configurables` name collision issues #1487

Closed ra0x3 closed 8 months ago

ra0x3 commented 8 months ago
ra0x3 commented 8 months ago

@segfault-magnet

        #[NoStd]
        pub struct AssetId {
            pub value: ::fuels::types::Bits256,
        }

:(

segfault-magnet commented 8 months ago

Check the SDK version. AssetId should be the fuel core type since version fuels 0.49.0.

Lemme know if it is newer than the above.

ra0x3 commented 8 months ago

@segfault-magnet Version is fuels = { version = "0.50", default-features = false }

segfault-magnet commented 8 months ago

I tested this locally, we're resolving the type to the AssetId from fuel types.

How can I reproduce this issue @ra0x3 ? Cannot access the link in the issue, getting 404.

ra0x3 commented 8 months ago

@segfault-magnet

segfault-magnet commented 8 months ago

@ra0x3 the Abigen used in the code generation is from fuels 0.46. Can you update it over in fuel-indexer-macros's Cargo.toml? Anything after 0.49 should be ok.

@ra0x3

Edit: Heck since I seem to be blind, might as well add one more @ra0x3 :D

ra0x3 commented 8 months ago

Ahh ok @segfault-magnet I see fuels and fuels-code-gen are separate. Let me try this.

ra0x3 commented 8 months ago

@segfault-magnet Purrrffect 🐱 worked like a charm thanks!