Skip to content

Commit 4bc8e26

Browse files
committed
fix: transaction validation.
1 parent 1b796d5 commit 4bc8e26

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

aptos-move/framework/aptos-framework/doc/chain_status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Helper function to assert genesis state.
205205

206206

207207
<pre><code><b>public</b> <b>fun</b> <a href="chain_status.md#0x1_chain_status_assert_genesis">assert_genesis</a>() {
208-
<b>assert</b>!(<a href="chain_status.md#0x1_chain_status_is_genesis">is_genesis</a>(), <a href="../../aptos-stdlib/../move-stdlib/doc/error.md#0x1_error_invalid_state">error::invalid_state</a>(<a href="chain_status.md#0x1_chain_status_ENOT_OPERATING">ENOT_OPERATING</a>));
208+
<b>assert</b>!(<a href="chain_status.md#0x1_chain_status_is_genesis">is_genesis</a>(), <a href="../../aptos-stdlib/../move-stdlib/doc/error.md#0x1_error_invalid_state">error::invalid_state</a>(<a href="chain_status.md#0x1_chain_status_ENOT_GENESIS">ENOT_GENESIS</a>));
209209
}
210210
</code></pre>
211211

aptos-move/framework/aptos-framework/sources/governed_gas_pool.move

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module aptos_framework::governed_gas_pool {
2+
3+
friend aptos_framework::transaction_validation;
4+
25
use std::vector;
36
use aptos_framework::account::{Self, SignerCapability, create_signer_with_capability};
47
use aptos_framework::system_addresses::{Self};
@@ -138,7 +141,7 @@ module aptos_framework::governed_gas_pool {
138141
/// Deposits gas fees into the governed gas pool.
139142
/// @param gas_payer The address of the account that paid the gas fees.
140143
/// @param gas_fee The amount of gas fees to be deposited.
141-
public fun deposit_gas_fee(gas_payer: address, gas_fee: u64) acquires GovernedGasPool {
144+
public(friend) fun deposit_gas_fee(gas_payer: address, gas_fee: u64) acquires GovernedGasPool {
142145
if (features::operations_default_to_fa_apt_store_enabled()) {
143146
deposit_from_fungible_store(gas_payer, gas_fee);
144147
} else {

0 commit comments

Comments
 (0)