Commit 7023adc16f2c47b0399a242111adf25544a62185
add gas to FunctionRef constructor
Norton Wang committed on 3/7/2018, 1:52:27 AMParent: a5ab0fcd21ce8f881036e23c0db45f31bdd8ec38
Files changed
systemObjects.js | changed |
systemObjects.js | ||
---|---|---|
@@ -16,14 +16,14 @@ | ||
16 | 16 | func: new cbor.Tagged(TAGS.func, 0) |
17 | 17 | } |
18 | 18 | |
19 | 19 | class FunctionRef { |
20 | - constructor (privateFunc, identifier, params, id) { | |
20 | + constructor (privateFunc, identifier, params, id, gas=0) { | |
21 | 21 | this.private = privateFunc |
22 | 22 | this.identifier = identifier |
23 | 23 | this.destId = id |
24 | 24 | this.params = params |
25 | - this.gas = 0 | |
25 | + this.gas = gas | |
26 | 26 | } |
27 | 27 | |
28 | 28 | encodeCBOR (gen) { |
29 | 29 | return gen.write(new cbor.Tagged(TAGS.func, [ |
Built with git-ssb-web