fixed jeff's bug
This commit is contained in:
parent
78adf271a4
commit
544c5d4467
7
SIN.js
7
SIN.js
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue