• Initialize the ERC20 contract Can be called only once

    Example

      constructor(
    new Args()
    .add('TOKEN_NAME')
    .add('TOKEN_SYMBOL')
    .add(3) // decimals
    .add(1000) // total supply
    .serialize(),
    );

    Parameters

    • stringifyArgs: StaticArray<number>

      Args object serialized as a string containing:

      • the token name (string)
      • the token symbol (string).
      • the decimals (u8).
      • the totalSupply (u64)
      • first owner (address)e

    Returns void

Generated using TypeDoc