There was an error while loading. Please reload this page.
1 parent 2a0ea28 commit 19ebd6eCopy full SHA for 19ebd6e
1 file changed
mytoken/sources/my_token.move
@@ -1,5 +1,5 @@
1
module MyToken::coin {
2
- use 0x1::signer;
+ use std::signer;
3
4
/// Simple in-memory coin (educational)
5
struct Coin has store { value: u64 }
@@ -10,9 +10,7 @@ module MyToken::coin {
10
Coin { value: amount }
11
}
12
13
- public fun balance(coin: &Coin): u64 {
14
- coin.value
15
- }
+ public fun balance(coin: &Coin): u64 { coin.value }
16
17
public fun transfer(from: &mut Coin, amount: u64): Coin {
18
assert!(from.value >= amount, EINSUFFICIENT_BALANCE);
0 commit comments