git ssb

0+

wanderer🌟 / js-primea-wasm-container



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.jsonchanged
package.jsonchanged
tests/index.jschanged
package-lock.jsonView
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.jsonView
@@ -35,7 +35,7 @@
3535 "primea-annotations": "^0.0.3",
3636 "primea-objects": "^0.0.3",
3737 "reference-map": "1.2.6",
3838 "wasm-json-toolkit": "^0.2.3",
39- "wasm-metering": "^0.2.0"
39 + "wasm-metering": "^0.2.1"
4040 }
4141 }
tests/index.jsView
@@ -106,17 +106,15 @@
106106 hypervisor.registerContainer(TestWasmContainer)
107107
108108 const {module} = await hypervisor.createActor(TestWasmContainer.typeId, wasm)
109109 const funcRef = module.getFuncRef('receive')
110- funcRef.gas = 300
110 + funcRef.gas = 3000
111111
112112 const message = new Message({
113113 funcRef,
114114 funcArguments: [5]
115115 })
116116 hypervisor.send(message)
117- // const stateRoot = await hypervisor.createStateRoot()
118- // t.deepEquals(stateRoot, expectedState, 'expected root!')
119117 })
120118
121119 tape('empty', async t => {
122120 t.plan(1)
@@ -133,9 +131,9 @@
133131 hypervisor.registerContainer(TestWasmContainer)
134132
135133 const {module} = await hypervisor.createActor(TestWasmContainer.typeId, wasm)
136134 const funcRef = module.getFuncRef('receive')
137- funcRef.gas = 300
135 + funcRef.gas = 3000
138136
139137 const message = new Message({
140138 funcRef,
141139 funcArguments: [5]

Built with git-ssb-web