CONTRACTS: createDummyContract returns filename (#1129)

This commit is contained in:
Bart Kuijper
2024-03-02 05:12:04 +01:00
committed by GitHub
parent 4c7f192645
commit 6a3d22d7bd
4 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export function NetscriptCodingContract(): InternalAPI<ICodingContract> {
},
createDummyContract: (ctx) => (_type) => {
const type = helpers.string(ctx, "type", _type);
generateDummyContract(type);
return generateDummyContract(type);
},
getContractTypes: () => () => codingContractTypesMetadata.map((c) => c.name),
};