This module stores the struct, which is used as a CoinType to track tAPT coins.
use 0x1::coin;
use 0x1::signer;
Struct StakedAptosCoin
The struct to track tAPT coins.
struct StakedAptosCoin
Fields
dummy_field: bool
Function register_for_t_apt
public fun register_for_t_apt(account: &signer)
Implementation
public fun register_for_t_apt(account: &signer) {
let account_address = signer::address_of(account);
if (!coin::is_account_registered<StakedAptosCoin>(account_address)) {
coin::register<StakedAptosCoin>(account);
};
}