SPLTokenProgram.initializeMint2 constructor
SPLTokenProgram.initializeMint2({
- required SPLTokenInitializeMint2Layout layout,
- required SolAddress mint,
- 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);
}