diff --git a/src/commands/protocols/common/validate-assertion-metadata-command.js b/src/commands/protocols/common/validate-assertion-metadata-command.js index f9d19976a..9031f860b 100644 --- a/src/commands/protocols/common/validate-assertion-metadata-command.js +++ b/src/commands/protocols/common/validate-assertion-metadata-command.js @@ -4,6 +4,7 @@ class ValidateAssertionMetadataCommand extends Command { constructor(ctx) { super(ctx); this.operationIdService = ctx.operationIdService; + this.blockchainModuleManager = ctx.blockchainModuleManager; } async execute(command) { diff --git a/src/modules/blockchain/blockchain-module-manager.js b/src/modules/blockchain/blockchain-module-manager.js index 2a87e9dbb..76c3c2732 100644 --- a/src/modules/blockchain/blockchain-module-manager.js +++ b/src/modules/blockchain/blockchain-module-manager.js @@ -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, diff --git a/src/modules/blockchain/implementation/web3-service.js b/src/modules/blockchain/implementation/web3-service.js index c0f45d006..902d8f933 100644 --- a/src/modules/blockchain/implementation/web3-service.js +++ b/src/modules/blockchain/implementation/web3-service.js @@ -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()];