Skip to content

Commit 3a78220

Browse files
author
archx
committed
Update ft cli
1 parent ebf8dfb commit 3a78220

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ payment_txs/
1212
download_txs/
1313
transfer_txs/
1414
wallets/
15+
wallets/*
1516
wallet.json
1617
wallet.json.*
1718
keypairs.json

Diff for: lib/commands/mint-interactive-ft-command.ts

+3-15
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,10 @@ export class MintInteractiveFtCommand implements CommandInterface {
6666
console.log('Total Supply (Satoshis): ', this.supply);
6767
console.log('Total Supply (BTC): ', this.supply / 100000000);
6868
let supply = this.supply;
69-
let decimals = 0;
70-
if (filesData['decimals']) {
71-
decimals = parseInt(filesData['decimals'], 10);
72-
}
73-
console.log('Decimals: ', decimals);
74-
75-
if (!decimals || decimals === 0) {
76-
console.log('RECOMMENDATION: USE AT LEAST DECIMALS 1 OR 2');
77-
}
78-
69+
7970
let expandedSupply = supply;
80-
if (decimals > 0) {
81-
let decimalFactor = Math.pow(10, decimals);
82-
expandedSupply = supply / decimalFactor
83-
}
84-
console.log('Total Supply (With Decimals): ', expandedSupply);
71+
72+
console.log('Total Supply: ', expandedSupply);
8573
console.log('Data objects: ', filesData);
8674
console.log('-----------------------')
8775

Diff for: templates/fungible-tokens/minimum-ft-data.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "",
33
"desc": "",
4-
"image": "atom:btc:dat:<location of store-file data>/image.png",
4+
"image": "atom:btc:dat:<outpoint id of store-file data>/image.png",
55
"legal": {
66
"terms": ""
77
}

0 commit comments

Comments
 (0)