Skip to content

Commit

Permalink
[AptosFramework] mint some coins for root account in genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
zekun000 authored and aptos-bot committed Mar 10, 2022
1 parent 883915d commit d73a5b0
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ compiled_package_info:
? address: "00000000000000000000000000000001"
name: Vector
: Std
source_digest: DA08D1587A621A2176DC31EA2F668DDCC181E956AEEEC308F6ED822900CE042D
source_digest: AB79639AF9BD277A8630DEDFB2889C138EC0E8D0946BDE64101842DA60A99F44
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
<a href="AptosTransactionPublishingOption.md#0x1_AptosTransactionPublishingOption_initialize">AptosTransactionPublishingOption::initialize</a>(core_resource_account, initial_script_allow_list, is_open_module);

<a href="TestCoin.md#0x1_TestCoin_initialize">TestCoin::initialize</a>(core_resource_account, 1000000);
<a href="TestCoin.md#0x1_TestCoin_mint">TestCoin::mint</a>(core_resource_account, <a href="../../../../../../../aptos-framework/releases/artifacts/current/build/MoveStdlib/docs/Signer.md#0x1_Signer_address_of">Signer::address_of</a>(core_resource_account), 18446744073709551615);

// Pad the event counter for the Diem Root account <b>to</b> match DPN. This
// _MUST_ match the new epoch event counter otherwise all manner of
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module AptosFramework::Genesis {
AptosTransactionPublishingOption::initialize(core_resource_account, initial_script_allow_list, is_open_module);

TestCoin::initialize(core_resource_account, 1000000);
TestCoin::mint(core_resource_account, Signer::address_of(core_resource_account), 18446744073709551615);

// Pad the event counter for the Diem Root account to match DPN. This
// _MUST_ match the new epoch event counter otherwise all manner of
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/aptos-framework/sources/Genesis.move
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module AptosFramework::Genesis {
AptosTransactionPublishingOption::initialize(core_resource_account, initial_script_allow_list, is_open_module);

TestCoin::initialize(core_resource_account, 1000000);
TestCoin::mint(core_resource_account, Signer::address_of(core_resource_account), 18446744073709551615);

// Pad the event counter for the Diem Root account to match DPN. This
// _MUST_ match the new epoch event counter otherwise all manner of
Expand Down
2 changes: 1 addition & 1 deletion vm-validator/src/vm_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use aptos_types::{
account_address::AccountAddress,
account_config::{AccountResource, AccountSequenceInfo},
account_state::AccountState,
on_chain_config::{DiemVersion, OnChainConfigPayload, VMConfig, VMPublishingOption},
on_chain_config::OnChainConfigPayload,
transaction::{SignedTransaction, VMValidatorResult},
};
use aptos_vm::DiemVM;
Expand Down

0 comments on commit d73a5b0

Please sign in to comment.