You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loader offset is exposed by sdk as of FuelLabs/fuels-rs#1522 currently we are recalculating this value in forc-deploy because at the time of the implementation this was not exposed by sdk. This is bad because if anything changes around that area, we need to update it manually. We should use the exposed value from sdk instead of recalculating.
Hi @kayagokalp going through the sdk, in the impl block for Executable<Loader> I found the function being exposed to get the offset data_offset_in_code I've updated deploy.rs to use that instead and removed the duplicate function recalculating the value.
let loader_data_section_offset = loader.data_offset_in_code();
Description
Loader offset is exposed by sdk as of FuelLabs/fuels-rs#1522 currently we are recalculating this value in forc-deploy because at the time of the implementation this was not exposed by sdk. This is bad because if anything changes around that area, we need to update it manually. We should use the exposed value from sdk instead of recalculating.
FuelLabs/fuels-rs#1522
Context
sway/forc-plugins/forc-client/src/op/deploy.rs
Lines 357 to 360 in b6bbbf8
Solution
Basically remove the function showed in context, and get the exposed value from SDK directly.
The text was updated successfully, but these errors were encountered: