Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed Nov 4, 2023
1 parent fcc6b17 commit 18e6844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions examples/module_template/Move.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "coins"
name = "module_template"
version = "0.0.1"

[dependencies]
Expand All @@ -13,11 +13,9 @@ RoochFramework = { local = "../../crates/rooch-framework" }

[addresses]
rooch_examples = "_"
template_address = "0xdeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadead"
std = "0x1"
moveos_std = "0x2"
rooch_framework = "0x3"

[dev-addresses]
rooch_examples = "0x42"
template_address = "0xdeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadead"
rooch_examples = "0x42"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) RoochNetwork
// SPDX-License-Identifier: Apache-2.0

module template_address::coin_module_identifier_placeholder {
module 0xdeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadead::coin_module_identifier_placeholder {

use std::string;
use moveos_std::signer;
Expand Down Expand Up @@ -42,7 +42,7 @@ module template_address::coin_module_identifier_placeholder {
/// In a real world scenario, the coins should be given out in the application business logic.
public entry fun faucet(ctx: &mut Context, account: &signer) {
let account_addr = signer::address_of(account);
let treasury = account_storage::global_borrow_mut<Treasury>(ctx, @template_address);
let treasury = account_storage::global_borrow_mut<Treasury>(ctx, @0xdeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadeadead);
let coin = coin_store::withdraw<COIN_STRUCT_IDENTIFIER_PLACEHOLDER>(object::borrow_mut(&mut treasury.coin_store), 10000);
account_coin_store::deposit(ctx, account_addr, coin);
}
Expand Down

0 comments on commit 18e6844

Please sign in to comment.