Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit 37a43c7

Browse files
committed
Ensure that all issues are owned by burn address.
1 parent 5e1edee commit 37a43c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ const getTzLedger = async (tz, res) => {
212212

213213
await owners(c)
214214

215-
if (c.owners[BURN_ADDRESS] === undefined) {
215+
var burnAddrCount = c.owners[BURN_ADDRESS]
216+
var allIssuesBurned = burnAddrCount && burnAddrCount === c.total_amount
217+
218+
if (!allIssuesBurned) {
216219
delete c.owners
217220

218221
validCreations.push(c)

0 commit comments

Comments
 (0)