FuelLabs / fuels-rs

Fuel Network Rust SDK
https://fuellabs.github.io/fuels-rs
Apache License 2.0
44.37k stars 1.33k forks source link

Predicate estimation fallback to API #1409

Closed segfault-magnet closed 4 weeks ago

segfault-magnet commented 1 month ago

fuel core 0.28.0 is going to be releasing with upgrades to the fuel vm. Those updates will impact predicate gas usage estimation.

Besides that 0.28.0 is backwards compatible API wise -- all endpoints should work with the current version of the SDK.

We need to release a patch version with as little breaking changes as possible that will include a fallback mechanism -- if the sdk detects that the node that we're talking to isn't the exact same version we've been developed against we should use the GQL endpoint for predicate estimation.

Releasing this as soon as possible will give users enough time to update their sdk deps so that they may continue normally estimating predicates when the 0.28.0 core rollout happens.