Skip to content

Commit

Permalink
Merge pull request #3588 from OriginTrail/v8/develop
Browse files Browse the repository at this point in the history
AskStorage update
  • Loading branch information
Mihajlo-Pavlovic authored Dec 23, 2024
2 parents ebfad66 + 35070f4 commit 4333012
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "8.0.0-sigma.11",
"version": "8.0.0-sigma.12",
"description": "OTNode V8",
"main": "index.js",
"type": "module",
Expand Down Expand Up @@ -81,7 +81,7 @@
"axios": "^1.6.0",
"cors": "^2.8.5",
"deep-extend": "^0.6.0",
"dkg-evm-module": "^8.0.0-sigma.0",
"dkg-evm-module": "^8.0.0-sigma.2",
"dotenv": "^16.0.1",
"ethers": "^5.7.2",
"express": "^4.18.1",
Expand Down
2 changes: 1 addition & 1 deletion src/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const ABIs = {
ShardingTableStorage: require('dkg-evm-module/abi/ShardingTableStorage.json'),
ParanetsRegistry: require('dkg-evm-module/abi/ParanetsRegistry.json'),
ParanetKnowledgeAssetsRegistry: require('dkg-evm-module/abi/ParanetKnowledgeAssetsRegistry.json'),
Ask: require('dkg-evm-module/abi/Ask.json'),
AskStorage: require('dkg-evm-module/abi/AskStorage.json'),
Chronos: require('dkg-evm-module/abi/Chronos.json'),
};

Expand Down
6 changes: 5 additions & 1 deletion src/modules/blockchain/implementation/web3-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,11 @@ class Web3Service {
}

async getStakeWeightedAverageAsk() {
return this.callContractFunction(this.contracts.Ask, 'getStakeWeightedAverageAsk', []);
return this.callContractFunction(
this.contracts.AskStorage,
'getStakeWeightedAverageAsk',
[],
);
}

async getTimeUntilNextEpoch() {
Expand Down

0 comments on commit 4333012

Please sign in to comment.