git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 7023adc16f2c47b0399a242111adf25544a62185

add gas to FunctionRef constructor

Norton Wang committed on 3/7/2018, 1:52:27 AM
Parent: a5ab0fcd21ce8f881036e23c0db45f31bdd8ec38

Files changed

systemObjects.jschanged
systemObjects.jsView
@@ -16,14 +16,14 @@
1616 func: new cbor.Tagged(TAGS.func, 0)
1717 }
1818
1919 class FunctionRef {
20- constructor (privateFunc, identifier, params, id) {
20+ constructor (privateFunc, identifier, params, id, gas=0) {
2121 this.private = privateFunc
2222 this.identifier = identifier
2323 this.destId = id
2424 this.params = params
25- this.gas = 0
25+ this.gas = gas
2626 }
2727
2828 encodeCBOR (gen) {
2929 return gen.write(new cbor.Tagged(TAGS.func, [

Built with git-ssb-web