Commit c9ac540197b2a640dfb17a9bacf432e75ebaa0c0
Kernel: include precompiled contracts in the state tree
Alex Beregszaszi committed on 8/28/2016, 11:54:31 AMParent: b725bc7ad54293c26697f1601c814ec603dc26fc
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -32,8 +32,12 @@ | ||
32 | 32 | module.exports = class Kernel { |
33 | 33 | // runs some code in the VM |
34 | 34 | constructor (environment = new Environment()) { |
35 | 35 | this.environment = environment |
36 | + | |
37 | + this.environment.addAccount(identityContract, {}) | |
38 | + this.environment.addAccount(meteringContract, {}) | |
39 | + this.environment.addAccount(transcompilerContract, {}) | |
36 | 40 | } |
37 | 41 | |
38 | 42 | // handles running code. |
39 | 43 | // NOTE: it assumes that wasm will raise an exception if something went wrong, |
Built with git-ssb-web