Skip to content

Commit

Permalink
Should call the initial function (#1665)
Browse files Browse the repository at this point in the history
* should call the initial function

* fix the duplicated gas item
  • Loading branch information
steelgeek091 authored May 10, 2024
1 parent 9d1f7b3 commit d0ea730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion moveos/moveos/src/gas/parameters/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ crate::gas::native::define_gas_parameters_for_natives!(AbstractValueSizeGasParam
[.per_u32_packed, "per_u32_packed", 4],
[.per_u64_packed, "per_u64_packed", 8],
[.per_u128_packed, "per_u128_packed", 16],
[.per_u256_packed, "per_u128_packed", 32],
[.per_u256_packed, "per_u256_packed", 32],
[.per_bool_packed, "per_bool_packed", 1],
[.per_address_packed, "per_address_packed", 32],
]);
6 changes: 3 additions & 3 deletions moveos/moveos/src/gas/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ pub struct VMGasParameters {
impl VMGasParameters {
pub fn initial() -> Self {
Self {
instruction_gas_parameter: InstructionParameter::zeros(),
storage_gas_parameter: StorageGasParameter::zeros(),
abstract_value_parameter: AbstractValueSizeGasParameter::zeros(),
instruction_gas_parameter: InstructionParameter::initial(),
storage_gas_parameter: StorageGasParameter::initial(),
abstract_value_parameter: AbstractValueSizeGasParameter::initial(),
}
}

Expand Down

0 comments on commit d0ea730

Please sign in to comment.