Closed willemneal closed 5 years ago
This currently breaks the tests because the imports aren't defined yet:
Error during test execution: LinkError: WebAssembly Instantiation: Import #1 module="env" function="input" error: function import requires a callable
at instantiate (/Users/willem/near/near-assemblyscript/assemblyscript/lib/loader/index.js:262:5)
at Object.instantiateBuffer (/Users/willem/near/near-assemblyscript/assemblyscript/lib/loader/index.js:270:10)
at loadModule (/Users/willem/near/near-assemblyscript/assemblyscript/tests/near-bindgen/test.js:10:21)
at /Users/willem/near/near-assemblyscript/assemblyscript/tests/near-bindgen/test.js:78:26
at Object.<anonymous> (/Users/willem/near/near-assemblyscript/assemblyscript/tests/near-bindgen/test.js:92:3)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
And updated how input is read in and written out.