BUGFIX: Coding contracts may have duplicate names (#2399)

This commit is contained in:
imcute_aaaa
2025-11-27 16:59:11 +09:00
committed by GitHub
parent 329fdc50fb
commit 77fe36db89
5 changed files with 125 additions and 20 deletions

View File

@@ -4059,10 +4059,12 @@ export interface CodingContract {
*
* Generate a dummy contract on the home computer with no reward. Used to test various algorithms.
*
* This function will return null and not generate a contract if the randomized contract name is the same as another contract's name.
*
* @param type - Type of contract to generate
* @returns Filename of the contract.
*/
createDummyContract(type: CodingContractName): string;
createDummyContract(type: CodingContractName): string | null;
/**
* List all contract types.