Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamaguchi authored and azuchi committed Dec 24, 2020
1 parent 1c385e0 commit 863c126
Showing 3 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/utxo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const tapyrus = require('tapyrusjs-lib');
class Utxo {
constructor(txid, height, index, scriptPubkey, colorId, value) {
this.txid = txid;
@@ -10,10 +9,5 @@ class Utxo {
this.colorId = colorId;
this.value = value;
}
address() {
return tapyrus.address.fromOutputScript(
Buffer.from(this.scriptPubkey, 'hex'),
);
}
}
exports.Utxo = Utxo;
8 changes: 0 additions & 8 deletions ts_src/utxo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as tapyrus from 'tapyrusjs-lib';

export class Utxo {
txid: string;
height: number;
@@ -23,10 +21,4 @@ export class Utxo {
this.colorId = colorId;
this.value = value;
}

address(): string {
return tapyrus.address.fromOutputScript(
Buffer.from(this.scriptPubkey, 'hex'),
);
}
}
1 change: 0 additions & 1 deletion types/utxo.d.ts
Original file line number Diff line number Diff line change
@@ -6,5 +6,4 @@ export declare class Utxo {
scriptPubkey: string;
colorId: string;
constructor(txid: string, height: number, index: number, scriptPubkey: string, colorId: string, value: number);
address(): string;
}

0 comments on commit 863c126

Please sign in to comment.