FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
344 stars 77 forks source link

Fixed charge functions to profile cost before charging #787

Closed xgreenx closed 6 days ago

xgreenx commented 1 week ago

Changed the behavior of the gas charge functions.

Form:

  1. Charge
  2. Profile

To :

  1. Profile
  2. Charge

Because the profile function expects that it is called before $cgas is updated.

image

Since we don't this code, it is not breaking behavior=)

Before requesting review