• Parameters

    • wallet: BrowserWallet
    • andamioConfig: AndamioConfig<CourseManagementConfig>
    • selectedCourseReferenceUTxO: CourseReferenceUTxO
    • studentAssignmentInfo: null | string

      is optional. Let's experiment with how much we encourage students to submit assignments at the time of commitment versus later. If no studentAssignmentInfo is provided, then the student will have to complete a StudentUpdateAssignmentTx later, to add info.

    Returns Promise<CommitToAssignmentTx>

    successful TxHash of CommitToAssignmentTx

    Example

    How to use in Andamio Starter:

    const COMMIT_TO_ASSIGNMENT_TX = await prepareCommitToAssignmentTx(
    wallet,
    andamioConfig,
    props.selectedModuleUTxO,
    studentAssignmentInfo
    );
    const res = await COMMIT_TO_ASSIGNMENT_TX.runTx();
    console.log(res);

Generated using TypeDoc