FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

chore: Simplify `InterpreterStorage` #683

Closed bvrooman closed 9 months ago

bvrooman commented 9 months ago

Related issues:

Currently, the InterpreterStorage trait has two issues:

By removing the merkle_ prefix, we make it more clear that the methods are simply methods to query or mutate data in interpreter storage. Any Merklization is an internal detail. Additionally, this means that implementations of these methods that do not apply Merklization, i.e. for MemoryStorage, are more congruent with the method name.

This enables future interface changes to be done more easily and with greater confidence in their correctness.