diff --git a/CHANGELOG.md b/CHANGELOG.md index 78aeb4c080..f3f6c5b6ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed +#### Breaking + +- [#672](https://github.com/FuelLabs/fuel-vm/pull/672): Remove `GasPrice` policy +- [#672](https://github.com/FuelLabs/fuel-vm/pull/672): Add `gas_price` field to transaction execution + ## [Version 0.46.0] ### Changed #### Breaking - [#679](https://github.com/FuelLabs/fuel-vm/pull/679): Require less restricted constraint on `MerkleRootStorage` trait. Now it requires `StorageInspect` instead of the `StorageMutate`. -- [#1632](https://github.com/FuelLabs/fuel-core/pull/1632): Removed `ContractsInfo` table. Contract salts and roots are no longer stored in on-chain data. -- [#1632](https://github.com/FuelLabs/fuel-core/pull/1632): Opcode `CROO` now calculates the given contract's root on demand. `CROO` has therefore been changed to a `DependentCost` gas cost. +- [#673](https://github.com/FuelLabs/fuel-vm/pull/673): Removed `ContractsInfo` table. Contract salts and roots are no longer stored in on-chain data. +- [#673](https://github.com/FuelLabs/fuel-vm/pull/673): Opcode `CROO` now calculates the given contract's root on demand. `CROO` has therefore been changed to a `DependentCost` gas cost. + +### Changed + +- [#672](https://github.com/FuelLabs/fuel-vm/pull/672): Add `Tip` policy ## [Version 0.45.0] diff --git a/fuel-asm/src/args.rs b/fuel-asm/src/args.rs index 035f6b0a3e..3fe157a480 100644 --- a/fuel-asm/src/args.rs +++ b/fuel-asm/src/args.rs @@ -252,7 +252,7 @@ crate::enum_try_from! { PolicyTypes = 0x500, /// Set `$rA` to `tx.policies[0x00].gasPrice` - PolicyGasPrice = 0x501, + PolicyTip = 0x501, /// Set `$rA` to `tx.policies[count_ones(0b11 & tx.policyTypes) - 1].witnessLimit` PolicyWitnessLimit = 0x502, @@ -362,7 +362,7 @@ fn encode_gtf_args() { GTFArgs::WitnessDataLength, GTFArgs::WitnessData, GTFArgs::PolicyTypes, - GTFArgs::PolicyGasPrice, + GTFArgs::PolicyTip, GTFArgs::PolicyWitnessLimit, GTFArgs::PolicyMaturity, GTFArgs::PolicyMaxFee, diff --git a/fuel-tx/src/builder.rs b/fuel-tx/src/builder.rs index 6c3214d36e..60ef079980 100644 --- a/fuel-tx/src/builder.rs +++ b/fuel-tx/src/builder.rs @@ -6,8 +6,8 @@ use crate::{ field::{ BytecodeLength, BytecodeWitnessIndex, - GasPrice, Maturity, + Tip, Witnesses, }, Chargeable, @@ -119,7 +119,7 @@ impl TransactionBuilder