FuelLabs / fuels-ts

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

Stop using Sparse Merkle Tree #2828

Closed arboleya closed 1 month ago

arboleya commented 1 month ago

We may have fuel-core removing the use of SMT.

I know we have a package:

Which was ported from:

A quick search led me here. I'm not sure about the state of this port, but it can be a good starting point to look into.

https://github.com/FuelLabs/fuels-ts/blob/b1dbe42361e52af77f124ec8c633e86885a790be/packages/account/src/predicate/predicate.ts#L65


Related:

Torres-ssf commented 1 month ago

As mentioned in the fuel-core issue, the use of SMT has only been removed from the balanceRoot and stateRoot fields, which are part of the OutputContract.

These fields are exclusively set by the Client/VM. In the TypeScript SDK, we simply de/serialize these values from a processed transaction. Therefore, we can safely close this issue.