diff --git a/package.json b/package.json index 67a57e68..f1a52a2e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.2.45", + "version": "1.2.46", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/core/modules/impl/wasm/go-wasm-imports.ts b/src/core/modules/impl/wasm/go-wasm-imports.ts index d0a1050f..5ad7ca9e 100644 --- a/src/core/modules/impl/wasm/go-wasm-imports.ts +++ b/src/core/modules/impl/wasm/go-wasm-imports.ts @@ -25,7 +25,7 @@ let globalJsModule; globalJsModule.redstone = { go: {} }; -}).call( +}.call( this, typeof global !== 'undefined' ? global @@ -34,7 +34,7 @@ let globalJsModule; : typeof window !== 'undefined' ? window : {} -); +)); export class Go { private _callbackTimeouts: Map;