Skip to content

Commit

Permalink
Merge pull request #3526 from OriginTrail/fix/remote-triples-number-g…
Browse files Browse the repository at this point in the history
…etter

Remove triples number getter
  • Loading branch information
Mihajlo-Pavlovic authored Dec 18, 2024
2 parents 4cf9c4f + a09c071 commit a14f1ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ValidateAssertionMetadataCommand extends Command {
constructor(ctx) {
super(ctx);
this.operationIdService = ctx.operationIdService;
this.blockchainModuleManager = ctx.blockchainModuleManager;
}

async execute(command) {
Expand Down
6 changes: 0 additions & 6 deletions src/modules/blockchain/blockchain-module-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ class BlockchainModuleManager extends BaseModuleManager {
]);
}

async getKnowledgeCollectionTriplesNumber(blockchain, knowledgeCollectionId) {
return this.callImplementationFunction(blockchain, 'getKnowledgeCollectionTriplesNumber', [
knowledgeCollectionId,
]);
}

async getKnowledgeCollectionChunksAmount(blockchain, knowledgeCollectionId) {
return this.callImplementationFunction(blockchain, 'getKnowledgeCollectionChunksAmount', [
knowledgeCollectionId,
Expand Down
13 changes: 0 additions & 13 deletions src/modules/blockchain/implementation/web3-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,19 +951,6 @@ class Web3Service {
return Number(knowledgeCollectionSize);
}

async getKnowledgeCollectionTriplesNumber(assetStorageContractAddress, knowledgeCollectionId) {
const assetStorageContractInstance =
this.assetStorageContracts[assetStorageContractAddress.toString().toLowerCase()];
if (!assetStorageContractInstance)
throw new Error('Unknown asset storage contract address');
const knowledgeCollectionTriplesNumber = await this.callContractFunction(
assetStorageContractInstance,
'getTriplesAmount',
[knowledgeCollectionId],
);
return Number(knowledgeCollectionTriplesNumber);
}

async getKnowledgeCollectionChunksAmount(assetStorageContractAddress, knowledgeCollectionId) {
const assetStorageContractInstance =
this.assetStorageContracts[assetStorageContractAddress.toString().toLowerCase()];
Expand Down

0 comments on commit a14f1ba

Please sign in to comment.