mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
BUGFIX: Player can manipulate internal state of coding contract (#2040)
This commit is contained in:
@@ -84,7 +84,7 @@ export function NetscriptCodingContract(): InternalAPI<ICodingContract> {
|
||||
// asserting type here is required, since it is not feasible to properly type getData
|
||||
return {
|
||||
type: contract.type,
|
||||
data: contract.getData(),
|
||||
data: structuredClone(contract.getData()),
|
||||
submit: (answer: unknown) => {
|
||||
helpers.checkEnvFlags(ctx);
|
||||
return attemptContract(ctx, server, contract, answer);
|
||||
|
||||
Reference in New Issue
Block a user