fixed jeff's bug

This commit is contained in:
Stephen Pair 2013-08-16 23:03:34 -04:00
parent 78adf271a4
commit 544c5d4467
1 changed files with 4 additions and 3 deletions

7
SIN.js
View File

@ -3,9 +3,6 @@ require('classtool');
function ClassSpec(b) { function ClassSpec(b) {
var superclass = b.superclass || require('./util/VersionedData').class(); var superclass = b.superclass || require('./util/VersionedData').class();
var SIN_PERSIST_MAINNET = 0x01; // associated with sacrifice TX
var SIN_PERSIST_TESTNET = 0x11; // associated with sacrifice TX
var SIN_EPHEM = 0x02; // generate off-net at any time
function SIN(type, payload) { function SIN(type, payload) {
if (typeof type != 'number') { if (typeof type != 'number') {
@ -21,6 +18,10 @@ function ClassSpec(b) {
SIN.superclass = superclass; SIN.superclass = superclass;
superclass.applyEncodingsTo(SIN); superclass.applyEncodingsTo(SIN);
SIN.SIN_PERSIST_MAINNET = 0x01; // associated with sacrifice TX
SIN.SIN_PERSIST_TESTNET = 0x11; // associated with sacrifice TX
SIN.SIN_EPHEM = 0x02; // generate off-net at any time
// get or set the prefix data (the first byte of the address) // get or set the prefix data (the first byte of the address)
SIN.prototype.prefix = function(num) { SIN.prototype.prefix = function(num) {
if(num || (num === 0)) { if(num || (num === 0)) {