Commit 7452c3bfee61c3bdc6dc100e82bb25bbac5905e5
update metering
Signed-off-by: wanderer <mjbecze@gmail.com>wanderer committed on 4/6/2018, 11:32:12 PM
Parent: 885e05bd77e55f9846f83ccd30e285c5566e6f38
Files changed
package-lock.json | changed |
package.json | changed |
tests/index.js | changed |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 193957 bytes New file size: 193957 bytes |
package.json | ||
---|---|---|
@@ -35,7 +35,7 @@ | ||
35 | 35 … | "primea-annotations": "^0.0.3", |
36 | 36 … | "primea-objects": "^0.0.3", |
37 | 37 … | "reference-map": "1.2.6", |
38 | 38 … | "wasm-json-toolkit": "^0.2.3", |
39 | - "wasm-metering": "^0.2.0" | |
39 … | + "wasm-metering": "^0.2.1" | |
40 | 40 … | } |
41 | 41 … | } |
tests/index.js | ||
---|---|---|
@@ -106,17 +106,15 @@ | ||
106 | 106 … | hypervisor.registerContainer(TestWasmContainer) |
107 | 107 … | |
108 | 108 … | const {module} = await hypervisor.createActor(TestWasmContainer.typeId, wasm) |
109 | 109 … | const funcRef = module.getFuncRef('receive') |
110 | - funcRef.gas = 300 | |
110 … | + funcRef.gas = 3000 | |
111 | 111 … | |
112 | 112 … | const message = new Message({ |
113 | 113 … | funcRef, |
114 | 114 … | funcArguments: [5] |
115 | 115 … | }) |
116 | 116 … | hypervisor.send(message) |
117 | - // const stateRoot = await hypervisor.createStateRoot() | |
118 | - // t.deepEquals(stateRoot, expectedState, 'expected root!') | |
119 | 117 … | }) |
120 | 118 … | |
121 | 119 … | tape('empty', async t => { |
122 | 120 … | t.plan(1) |
@@ -133,9 +131,9 @@ | ||
133 | 131 … | hypervisor.registerContainer(TestWasmContainer) |
134 | 132 … | |
135 | 133 … | const {module} = await hypervisor.createActor(TestWasmContainer.typeId, wasm) |
136 | 134 … | const funcRef = module.getFuncRef('receive') |
137 | - funcRef.gas = 300 | |
135 … | + funcRef.gas = 3000 | |
138 | 136 … | |
139 | 137 … | const message = new Message({ |
140 | 138 … | funcRef, |
141 | 139 … | funcArguments: [5] |
Built with git-ssb-web