Browse Source

fix error in versioned data

patch-2
Matias Alejo Garcia 11 years ago
parent
commit
6d9a396d89
  1. 6
      util/VersionedData.js

6
util/VersionedData.js

@ -1,6 +1,6 @@
var imports = require('soop').imports(); var imports = require('soop').imports();
var base58 = imports.base58 || require('base58-native').base58Check; var base58 = imports.base58 || require('base58-native').base58Check;
var superclass = imports.parent || require('./EncodedData'); var parent = imports.parent || require('./EncodedData');
function VersionedData(version, payload) { function VersionedData(version, payload) {
if(typeof version != 'number') { if(typeof version != 'number') {
@ -13,8 +13,8 @@ function VersionedData(version, payload) {
this.payload(payload); this.payload(payload);
}; };
VersionedData.parent = superclass || require('./Person'); VersionedData.parent = parent;
superclass.applyEncodingsTo(VersionedData); parent.applyEncodingsTo(VersionedData);
// get or set the version data (the first byte of the address) // get or set the version data (the first byte of the address)
VersionedData.prototype.version = function(num) { VersionedData.prototype.version = function(num) {

Loading…
Cancel
Save