Skip to content

Commit

Permalink
[Issue-182] fix: fix inscription count
Browse files Browse the repository at this point in the history
  • Loading branch information
bluezdot committed Jun 18, 2024
1 parent 7812d22 commit 1df98d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default class KoniState {
this.nftService.loadMoreNfts(
(...args) => this.updateNftData(...args),
(...args) => this.setNftCollection(...args),
(address: string) => this.dbService.getAddressTotalNfts([address])
(address: string) => this.dbService.getAddressTotalInscriptions([address], ['bitcoin'])
).catch(this.logger.log);
}

Expand Down
3 changes: 1 addition & 2 deletions packages/extension-base/src/koni/background/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ export class KoniSubscription {
this.nftService.handleNfts(
smartContractNfts,
(...args) => this.state.updateNftData(...args),
(...args) => this.state.setNftCollection(...args),
(address: string) => this.dbService.getAddressTotalNfts([address])
(...args) => this.state.setNftCollection(...args)
).catch(this.logger.log);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default class DatabaseService {
return this.stores.nft.cleanUpNfts(chain, reformatAddress(owner, 42), collectionIds, nftIds);
}

async getAddressTotalNfts (addresses: string[], chainHashes?: string[]) {
async getAddressTotalInscriptions (addresses: string[], chainHashes?: string[]) {
return this.stores.nft.getAddressTotalNfts(addresses, chainHashes);
}

Expand Down

0 comments on commit 1df98d3

Please sign in to comment.