SPLTokenProgram.initializeMint2 constructor

SPLTokenProgram.initializeMint2({
  1. required SPLTokenInitializeMint2Layout layout,
  2. required SolAddress mint,
  3. SolAddress programId = SPLTokenProgramConst.tokenProgramId,
})

Like SPLTokenProgram.initializeMint, but does not require the Rent sysvar to be provided

Implementation

factory SPLTokenProgram.initializeMint2(
    {required SPLTokenInitializeMint2Layout layout,

    /// The mint to initialize.
    required SolAddress mint,
    SolAddress programId = SPLTokenProgramConst.tokenProgramId}) {
  return SPLTokenProgram(
      layout: layout, keys: [mint.toWritable()], programId: programId);
}