From e1a8abeb5a83661af276467207e9d1f0cda9d3a6 Mon Sep 17 00:00:00 2001 From: Sergio Flores Date: Wed, 3 Jul 2019 20:05:39 +0100 Subject: [PATCH] Added VM opcodes to javascript --- JS/Bindings/phantasma.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/JS/Bindings/phantasma.js b/JS/Bindings/phantasma.js index 9a2333b..87c0342 100644 --- a/JS/Bindings/phantasma.js +++ b/JS/Bindings/phantasma.js @@ -1,5 +1,10 @@ class PhantasmaAPI { + const Opcodes = Object.freeze({ + {{#each opcodes}}{{#upper-case Key}}: {{Value}}, + {{/each}} + }); + constructor(host) { this.host = host; }