Commit 95835c54ae0cd7585237f3cf3b929867e8a016b9
Use Interface.exportTable in Kernal
Alex Beregszaszi committed on 8/3/2016, 6:18:55 PMParent: 364643a1dafb28ead224b6e8b6deed9459d2064e
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -26,9 +26,9 @@ | ||
26 | 26 | |
27 | 27 | // handles running code. |
28 | 28 | static codeHandler (code, ethInterface = new Interface(new Environment())) { |
29 | 29 | const instance = Wasm.instantiateModule(code, { |
30 | - 'ethereum': ethInterface | |
30 | + 'ethereum': ethInterface.exportTable | |
31 | 31 | }) |
32 | 32 | |
33 | 33 | ethInterface.setModule(instance) |
34 | 34 | if (instance.exports.main) { |
Built with git-ssb-web