FuelLabs / fuels-ts

Fuel Network Typescript SDK
https://docs.fuel.network/docs/fuels-ts/
Apache License 2.0
44.21k stars 1.34k forks source link

Deprecate Receipt Coders #3105

Closed Torres-ssf closed 3 weeks ago

Torres-ssf commented 4 weeks ago

Before fuel-core 0.20, the rawPayload property, which contained the serialized receipt, was part of each receipt returned by GraphQL queries related to transactions.

To decode this rawPayload and assemble the receipts, we used the receipt coders.

However, with the release of fuel-core 0.20, the rawPayload was removed from the GraphQL receipt type. Consequently, we had to update our receipt assembly process. Now, we validate receipts by their type property and manually assemble each receipt from the GraphQL response, as shown here.

Since these changes, the receipt coders are no longer in use and can be safely removed from the codebase deprate, as they no longer serve any functional purpose.