godprotocol 1.0.73 → 1.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,6 +124,11 @@ class Account extends Filesystem {
124
124
  obj.servers = this.servers;
125
125
  obj.name = this.name;
126
126
  obj.data_tracks = this.data_tracks;
127
+ obj.hash = this.hash;
128
+ obj.chain = this.chain.stringify();
129
+ obj.physical_address = this.physical_address;
130
+
131
+ return obj;
127
132
  };
128
133
 
129
134
  distribute = (data) => {
@@ -162,7 +167,7 @@ class Account extends Filesystem {
162
167
  let account = this.accounts[name] || this.manager.accounts[name];
163
168
 
164
169
  if (!account) {
165
- account = new Account(name, this);
170
+ account = new Account(name, this.manager);
166
171
  this.accounts[account.name] = account;
167
172
  this.manager.accounts[account.name] = account;
168
173
  }
@@ -66,6 +66,8 @@ class Virtual_machine extends Opcodes {
66
66
 
67
67
  let context = this.get_context();
68
68
 
69
+ if (!context) return;
70
+
69
71
  context.add_tx(instruction);
70
72
 
71
73
  let chain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
4
4
  "description": "A data mediator.",
5
5
  "main": "Index.js",
6
6
  "types": "index.d.ts",