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

Script and Mint transactions are replaced to empty Script transactions #1357

Closed a-filippo closed 1 year ago

a-filippo commented 1 year ago

Issue

Description

file: packages/fuel-indexer/src/executor.rs, fn retrieve_blocks_from_node https://github.com/FuelLabs/fuel-indexer/blob/1b345b069e99e846278bcbdcfda23fbe689839ab/packages/fuel-indexer/src/executor.rs#L425

Script and Mint transactions are replaced to Transaction::default(). By this reason inside my indexer these types of transactions are broken. I checked the commit history and file changes, and decided that this problem did not exist before. Anyway I have a branch which is the expected behavior in my opinion: https://github.com/FuelLabs/fuel-indexer/compare/develop...a-filippo:fuel-indexer:added-script-mint?expand=1

I am attaching an example of log, which shows that both block transactions has Script type with empty information.

2023-09-18 01 07 49

Versions

ra0x3 commented 1 year ago