dkg.js 8.0.2 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dkg.min.js +1 -1
- package/index.cjs +6 -6
- package/managers/asset-operations-manager.js +6 -6
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -586,15 +586,15 @@ class AssetOperationsManager {
|
|
|
586
586
|
|
|
587
587
|
this.validationService.validateIncreaseAllowance(blockchain);
|
|
588
588
|
|
|
589
|
-
const
|
|
590
|
-
'
|
|
589
|
+
const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
|
|
590
|
+
'KnowledgeCollection',
|
|
591
591
|
blockchain,
|
|
592
592
|
);
|
|
593
593
|
|
|
594
594
|
const receipt = await this.blockchainService.executeContractFunction(
|
|
595
595
|
'Token',
|
|
596
596
|
'increaseAllowance',
|
|
597
|
-
[
|
|
597
|
+
[knowledgeCollectionAddress, tokenAmount],
|
|
598
598
|
blockchain,
|
|
599
599
|
);
|
|
600
600
|
|
|
@@ -655,15 +655,15 @@ class AssetOperationsManager {
|
|
|
655
655
|
async getCurrentAllowance(options = {}) {
|
|
656
656
|
const blockchain = this.inputService.getBlockchain(options);
|
|
657
657
|
|
|
658
|
-
const
|
|
659
|
-
'
|
|
658
|
+
const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
|
|
659
|
+
'KnowledgeCollection',
|
|
660
660
|
blockchain,
|
|
661
661
|
);
|
|
662
662
|
|
|
663
663
|
const allowance = await this.blockchainService.callContractFunction(
|
|
664
664
|
'Token',
|
|
665
665
|
'allowance',
|
|
666
|
-
[blockchain.publicKey,
|
|
666
|
+
[blockchain.publicKey, knowledgeCollectionAddress],
|
|
667
667
|
blockchain,
|
|
668
668
|
);
|
|
669
669
|
|
|
@@ -168,15 +168,15 @@ export default class AssetOperationsManager {
|
|
|
168
168
|
|
|
169
169
|
this.validationService.validateIncreaseAllowance(blockchain);
|
|
170
170
|
|
|
171
|
-
const
|
|
172
|
-
'
|
|
171
|
+
const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
|
|
172
|
+
'KnowledgeCollection',
|
|
173
173
|
blockchain,
|
|
174
174
|
);
|
|
175
175
|
|
|
176
176
|
const receipt = await this.blockchainService.executeContractFunction(
|
|
177
177
|
'Token',
|
|
178
178
|
'increaseAllowance',
|
|
179
|
-
[
|
|
179
|
+
[knowledgeCollectionAddress, tokenAmount],
|
|
180
180
|
blockchain,
|
|
181
181
|
);
|
|
182
182
|
|
|
@@ -237,15 +237,15 @@ export default class AssetOperationsManager {
|
|
|
237
237
|
async getCurrentAllowance(options = {}) {
|
|
238
238
|
const blockchain = this.inputService.getBlockchain(options);
|
|
239
239
|
|
|
240
|
-
const
|
|
241
|
-
'
|
|
240
|
+
const knowledgeCollectionAddress = await this.blockchainService.getContractAddress(
|
|
241
|
+
'KnowledgeCollection',
|
|
242
242
|
blockchain,
|
|
243
243
|
);
|
|
244
244
|
|
|
245
245
|
const allowance = await this.blockchainService.callContractFunction(
|
|
246
246
|
'Token',
|
|
247
247
|
'allowance',
|
|
248
|
-
[blockchain.publicKey,
|
|
248
|
+
[blockchain.publicKey, knowledgeCollectionAddress],
|
|
249
249
|
blockchain,
|
|
250
250
|
);
|
|
251
251
|
|