Fix sing function for bn14 (#1168)

This commit is contained in:
LJ 2024-03-17 21:54:20 -07:00 committed by GitHub
parent edf8e24046
commit 6aaeb6b59e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1105,7 +1105,7 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
destroyW0r1dD43m0n: (ctx) => (_nextBN, _cbScript) => {
helpers.checkSingularityAccess(ctx);
const nextBN = helpers.number(ctx, "nextBN", _nextBN);
if (nextBN > 13 || nextBN < 1 || !Number.isInteger(nextBN)) {
if (nextBN > 14 || nextBN < 1 || !Number.isInteger(nextBN)) {
throw new Error(`Invalid bitnode specified: ${_nextBN}`);
}
const cbScript = _cbScript