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

chore: don't override the manifest file #1509

Closed lostman closed 5 months ago

lostman commented 7 months ago

Description

Closes #1350.

Instead of overriding the Manifest file, this PR adds --override-{start-block, end-block, identifier} CLI options to forc-index {build, deploy}, which allows us to achieve what we need for the QA script without touching the manifest file.

It also looks like forc index build unnecessarily writes the module path to the manifest:

    let relative_wasm = rel_artifact_path.as_path().display().to_string();

    manifest.set_module(Module::Wasm(relative_wasm));

I think forc-index shouldn't modify the user's source files.

Testing steps

CI tests should pass.

Changelog