axelar-cgp-sui

Module 0xa9::token_b

use 0x1::option;
use 0x2::coin;
use 0x2::transfer;
use 0x2::tx_context;
use 0x2::url;

Struct TOKEN_B

struct TOKEN_B has drop
Fields
dummy_field: bool

Function init

fun init(witness: token_b::TOKEN_B, ctx: &mut tx_context::TxContext)
Implementation
fun init(witness: TOKEN_B, ctx: &mut TxContext) {
    let (treasury_cap, coin_metadata) = coin::create_currency(
        witness,
        9,
        b"TOKEN2",
        b"Token 2",
        b"",
        option::none(),
        ctx,
    );
    transfer::public_transfer(treasury_cap, tx_context::sender(ctx));
    transfer::public_transfer(coin_metadata, tx_context::sender(ctx));
}