Skip to content

Commit

Permalink
fix bug with minting status update on init
Browse files Browse the repository at this point in the history
  • Loading branch information
jcramer committed Aug 7, 2019
1 parent 9ca8999 commit 104b184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SlpTokenGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class SlpTokenGraph implements TokenGraph {
} else {
let mints = await Query.getMintTransactions(tokenDetails.tokenIdHex);
if(mints && mints.length > 0)
await this.asyncForEach(mints, async (m: MintQueryResult) => await this.updateTokenGraphFrom({ txid: m.txid!, processUpToBlock: processUpToBlock }));
await this.asyncForEach(mints, async (m: MintQueryResult) => await this.updateTokenGraphFrom({ txid: m.txid!, processUpToBlock: processUpToBlock, isParent:true }));
}
await this.updateStatistics();
}
Expand Down
1 change: 1 addition & 0 deletions query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ export class Query {
"q": {
"db": ["c","u"],
"find": { "out.h1": "534c5000", "out.s3": "MINT", "out.h4": tokenId },
"sort": {"blk.i": 1},
"limit": limit
},
"r": { "f": "[ .[] | { slp: .slp, txid: .tx.h, versionTypeHex: .out[0].h2, block: (if .blk? then .blk.i else null end), timestamp: (if .blk? then (.blk.t | strftime(\"%Y-%m-%d %H:%M:%S\")) else null end), batonHex: .out[0].h5, quantityHex: .out[0].h6 } ]" }
Expand Down

0 comments on commit 104b184

Please sign in to comment.