From f0b4f93a84a559aead85e45431ee567989b3c37c Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 20 Aug 2024 14:28:19 +0200 Subject: [PATCH] fix: oracle urls out of gas --- README.md | 2 +- docker-compose.yml | 4 ++-- modules/aeternity/logic/aeternity.js | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e196af82..a42cbb42 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ npm i #### Start ipfs, database & redis ```bash -docker run --rm --name ipfs -p 5001:5001 -d ipfs/go-ipfs +docker run --rm --name ipfs -p 5001:5001 -d ipfs/kubo docker run --name superhero-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=superhero -p5432:5432 -d postgres docker run --name redis -p 6379:6379 -d redis ``` diff --git a/docker-compose.yml b/docker-compose.yml index 162a612d..cb9c03fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.6" services: superhero-backend: - image: aeternity/superhero-backend + build: . container_name: superhero-backend ports: - "3000:3000" @@ -54,7 +54,7 @@ services: - POSTGRES_DB=superhero ipfs: # this instance will sync with other peers and act as a p2p node, check the ipfs config to avoid that - image: ipfs/go-ipfs + image: ipfs/kubo hostname: ipfs restart: unless-stopped container_name: superhero-ipfs diff --git a/modules/aeternity/logic/aeternity.js b/modules/aeternity/logic/aeternity.js index 2d102956..dfc0349e 100644 --- a/modules/aeternity/logic/aeternity.js +++ b/modules/aeternity/logic/aeternity.js @@ -390,7 +390,10 @@ const aeternity = { async getOracleAllClaimedUrls() { if (!client) throw new Error('Init sdk first'); return oracleGetter - .get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS) + .get_oracle_claimed_urls(process.env.ORACLE_CONTRACT_ADDRESS, { + gasMax: 11e18, + gasLimit: 10e18, + }) .then(res => res.decodedResult) .catch(e => { logger.error(e.message);