Commit a14ec41fadf0f202a60992c8b084dfcb9a786ad9
store actor nonce
Norton Wang committed on 3/6/2018, 11:11:40 PMParent: 2417016a904e9be97c5043e4fc9b1d5357aa1635
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -67,9 +67,9 @@ | ||
67 | 67 | const encoded = encodedID(id) |
68 | 68 | let idHash = this._hash(encoded) |
69 | 69 | idHash = new ID(idHash) |
70 | 70 | const module = await Container.onCreation(code, idHash, this.tree) |
71 | - const metaData = [type, 0] | |
71 | + const metaData = [type, id.nonce] | |
72 | 72 | |
73 | 73 | // save the container in the state |
74 | 74 | const node = await this.tree.set(idHash.id, metaData) |
75 | 75 | // save the code |
Built with git-ssb-web