Skip to content

Commit

Permalink
Update token address
Browse files Browse the repository at this point in the history
  • Loading branch information
sanlee42 committed Aug 28, 2023
1 parent e2b6dfa commit 80a6c1a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ compiled_package_info:
StarcoinAssociation: "0x0000000000000000000000000a550c18"
StarcoinFramework: "0x00000000000000000000000000000001"
VMReserved: "0x00000000000000000000000000000000"
source_digest: FE212729EBF6A8DBC3934A155AE1FB2DA968820E6F59159E2235D0E6123C0B74
source_digest: EF872F81293887412E66E607258998B7CA7E7194A9C7F3F51FD09A894A32A6AB
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file modified build/StarcoinFramework/bytecode_modules/StdlibUpgradeScripts.mv
Binary file not shown.
10 changes: 8 additions & 2 deletions build/StarcoinFramework/docs/StdlibUpgradeScripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The module for StdlibUpgrade init scripts

<pre><code><b>use</b> <a href="Account.md#0x1_Account">0x1::Account</a>;
<b>use</b> <a href="Block.md#0x1_Block">0x1::Block</a>;
<b>use</b> <a href="ChainId.md#0x1_ChainId">0x1::ChainId</a>;
<b>use</b> <a href="Collection.md#0x1_Collection">0x1::Collection</a>;
<b>use</b> <a href="Config.md#0x1_Config">0x1::Config</a>;
<b>use</b> <a href="CoreAddresses.md#0x1_CoreAddresses">0x1::CoreAddresses</a>;
Expand Down Expand Up @@ -340,10 +341,15 @@ deprecated, use <code>do_upgrade_from_v6_to_v7_with_language_version</code>.

<pre><code><b>public</b> <b>fun</b> <a href="StdlibUpgradeScripts.md#0x1_StdlibUpgradeScripts_do_upgrade_from_v11_to_v12">do_upgrade_from_v11_to_v12</a>(sender: &signer) {
{
<b>let</b> <b>address</b> = <b>if</b> (<a href="ChainId.md#0x1_ChainId_is_main">ChainId::is_main</a>()){
@0x8c109349c6bd91411d6bc962e080c4a3
}<b>else</b> {
@0x4783d08fb16990bd35d83f3e23bf93b8
};
<a href="EasyGas.md#0x1_EasyGas_initialize">EasyGas::initialize</a>(sender,
@0x8c109349c6bd91411d6bc962e080c4a3,
<b>address</b>,
b"STAR",b"STAR",
@0x8c109349c6bd91411d6bc962e080c4a3);
<b>address</b>);
<a href="Block.md#0x1_Block_checkpoints_init">Block::checkpoints_init</a>(sender);
};
}
Expand Down
Binary file modified build/StarcoinFramework/source_maps/StdlibUpgradeScripts.mvsm
Binary file not shown.
10 changes: 8 additions & 2 deletions sources/StdlibUpgradeScripts.move
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ address StarcoinFramework {
/// The module for StdlibUpgrade init scripts
module StdlibUpgradeScripts {

use StarcoinFramework::ChainId;
use StarcoinFramework::EasyGas;
use StarcoinFramework::CoreAddresses;
use StarcoinFramework::STC::{Self, STC};
Expand Down Expand Up @@ -107,10 +108,15 @@ module StdlibUpgradeScripts {
}
public fun do_upgrade_from_v11_to_v12(sender: &signer) {
{
let address = if (ChainId::is_main()){
@0x8c109349c6bd91411d6bc962e080c4a3
}else {
@0x4783d08fb16990bd35d83f3e23bf93b8
};
EasyGas::initialize(sender,
@0x8c109349c6bd91411d6bc962e080c4a3,
address,
b"STAR",b"STAR",
@0x8c109349c6bd91411d6bc962e080c4a3);
address);
Block::checkpoints_init(sender);
};
}
Expand Down

0 comments on commit 80a6c1a

Please sign in to comment.