diff --git a/nostrscript/bool_setting.ts b/nostrscript/bool_setting.ts index c09aeb7a..308fc75c 100644 --- a/nostrscript/bool_setting.ts +++ b/nostrscript/bool_setting.ts @@ -1,18 +1,19 @@ import * as nostr from './nostr' -export function go(): i32 { - var setting = "mny`or" - var new_setting = "" - for (let i = 0; i < setting.length; i++) { - new_setting += String.fromCharCode(setting.charCodeAt(i) + 1); - } - // this should fail - if (nostr.set_bool_setting("shmorg", true)) { - // you shouldn't be able to set settings that dont exist - return 0; - } - return nostr.set_bool_setting(new_setting, false) +var setting = "mny`or" +var new_setting = "" + +for (let i = 0; i < setting.length; i++) { + new_setting += String.fromCharCode(setting.charCodeAt(i) + 1); } -go() +// this should fail +if (nostr.set_bool_setting("shmorg", true)) { + // you shouldn't be able to set settings that dont exist + return 0; +} + +if (!nostr.set_bool_setting(new_setting, false)) { + return 0; +} diff --git a/nostrscript/bool_setting.wasm b/nostrscript/bool_setting.wasm index 8d6fb5ad..f29f4242 100644 Binary files a/nostrscript/bool_setting.wasm and b/nostrscript/bool_setting.wasm differ